Skip to content

Commit 6c33371

Browse files
committed
Cleaned up and resolved some conflicts
1 parent 72b8c34 commit 6c33371

5 files changed

+7
-40
lines changed

docs/_toc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ parts:
1111
- file: notebooks/bibliography.ipynb
1212
- caption: Recommended Workflows
1313
chapters:
14-
- file: docs/good-practices
15-
- file: docs/general-guide
14+
- file: docs/folders-and-naming
1615
- file: docs/git-workflows
16+
- file: docs/notebook-workflows
1717
- caption: Gallery
1818
chapters:
1919
- file: docs/gallery

docs/folders-and-naming.md

+1-13
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,4 @@ We recognize that this approach may create some duplication and additional effor
2222

2323
## Programming Environments
2424
- **Python virtual environments.** We recommend using ```.venv``` for virtual environments. This allows for automatic detection by tools and editors like VS Code, simplifies setup, and keeps the folder hidden in most operating systems, reducing clutter. It also promotes consistency across projects, making it easier for others to understand and navigate your setup. because this keeps the folder tree clean among other advantages.
25-
- **Environment file for secrets and credentials**. In the project folder, you will find a file ```.env.example```, rename that file to ```.env```. This is what you will to keep API keys and other secrets. Again, refer to [this part](https://worldbank.github.io/template/README.html) of the documentation for details.
26-
27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
25+
- **Environment file for secrets and credentials**. In the project folder, you will find a file ```.env.example```, rename that file to ```.env```. This is what you will to keep API keys and other secrets. Again, refer to [this part](https://worldbank.github.io/template/README.html) of the documentation for details.

docs/git-workflows.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
# Guidelines for Git and GitHub Workflows
22
This section provides essential guidelines for using Git and GitHub effectively, ensuring a structured and collaborative workflow for all team members in a project. By following these practices—such as consistently ignoring the "data" folder to protect sensitive information, avoiding direct pushes to the main branch, creating descriptive branch names, and submitting pull requests once work on a branch is complete—we can maintain a clean, organized codebase and promote efficient collaboration. These guidelines help uphold version control best practices, streamline teamwork, and reduce the potential for errors in project repositories.
33

4-
54
## Branch Names and Other General Practices
65
- **Branch names**. After joining the project and cloning the repository, create a concise, descriptive branch name for your work and ensure you switch to that branch before beginning any work on your machine.
76
- **Update branches**. Avoid creating new update branches; instead, push your changes and resolve any conflicts directly. For instance, if bots in the repository modify your code (e.g., adjusting indentations), simply pull these changes before pushing your own updates.
87
- **Pull requests (PR)**. When you believe your changes are final, create a pull request and assign the project lead as the reviewer.
98

109
## Folders and Files to Ignore
1110
As all data science repos in the Data Lab use this template, the project repo will come with ```.ignore``` file prepopulated with most files and folders which need to be ignored. However, once you join the project and create your own branch. You will have to make sure that the following folders are being ignored.
12-
- Data folder
11+
12+
- Data folder
1313
- Virtual environments (```.venv```)
1414
- Environment (```.env```)
15-
Feel free to add any other files (e.g., system files specific to your OS) to the ```.gitignore```
16-
17-
18-
19-
20-
21-
15+
Feel free to add any other files (e.g., system files specific to your OS) to the ```.gitignore```

docs/good-practices.md

-11
This file was deleted.

docs/notebooks-workflows.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@ This section provides best practices for structuring analytical notebooks to enh
33

44
- **Structure**. In all the Data Lab projects, please follow [this analytics structure](https://github.com/worldbank/sudan-poverty-monitoring/blob/main/docs/2-analytics.md).
55
- **Editing _toc.yml**
6-
- **Removing/hiding cell blocks** All notebooks will be rendered in Jupyter Book. To enhance readability, ensure code cells are hidden or removed using cell tags. In some cases, you may use the hide-input cell tag.
7-
8-
9-
10-
6+
- **Removing/hiding cell blocks** All notebooks will be rendered in Jupyter Book. To enhance readability, ensure code cells are hidden or removed using cell tags. In some cases, you may use the hide-input cell tag.

0 commit comments

Comments
 (0)