You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update .pre-commit-config.yaml
- add google flag!
Signed-off-by: Mackenzie Mathis <[email protected]>
* Update pyproject.toml
- relax single line imports
Signed-off-by: Mackenzie Mathis <[email protected]>
* Create format.yml
- this will check if you really ran your pre-commit ;) if it fails, locally run and `git add .` then git push!
Signed-off-by: Mackenzie Mathis <[email protected]>
* Create requirements.txt
- min. example requirements
Signed-off-by: Mackenzie Mathis <[email protected]>
* formatting
---------
Signed-off-by: Mackenzie Mathis <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ project_name/
57
57
58
58
* Formatted code makes your life and those who use/review your code easier. Standardized formatting with tools like `black` and `isort` (see the provided `.pre-commit-config.yaml`).
59
59
*[Pre-commit hooks](https://pre-commit.com/) to automate checks before pushing code! Follow their quick Guide to do this, but in short:
60
-
60
+
61
61
(1) install it in your dev env
62
62
```python
63
63
pip install pre-commit
@@ -85,12 +85,12 @@ project_name/
85
85
86
86
*[DataJoint](https://www.datajoint.com/) examples for managing and querying scientific data pipelines - these are a must; use minimally for data + meta data storage, and use it to automate things you do daily (preprocessing, running DeepLabCut, etc!)
87
87
*[Templates for common workflows and schema management are here!](https://docs.datajoint.com/elements/)
88
-
88
+
89
89
90
90
7.**Style Guide for overall code & project management**
91
91
92
92
* Tips and practices for code, manuscripts, and figures.
Copy file name to clipboardExpand all lines: docs/DEV_GUIDE.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
1.**Be Constructive and Respectful**
14
14
- Focus on the code, not the person 🔐
15
15
- Provide clear, actionable feedback 🚧
16
-
- Explain the "why" behind your suggestions
16
+
- Explain the "why" behind your suggestions
17
17
- Use a positive and encouraging tone 💜
18
18
19
19
2.**Review Checklist**
@@ -96,7 +96,7 @@
96
96
97
97
## Collaborative Coding Guidelines
98
98
99
-
Each project is different, so please check project-specific guidelines.
99
+
Each project is different, so please check project-specific guidelines.
100
100
However, below is a guide for collaborative projects in general.
101
101
I recommend the following system for within-lab projects that have different levels of maintainers & builders.
102
102
@@ -108,7 +108,7 @@ I recommend the following system for within-lab projects that have different lev
108
108
- No one person is the gate-keeper for the project: work together
109
109
2.**Get a review assignment system in place**
110
110
- 🟥 Make a flag for **major dev/changes**: all users of the code should agree and sign off (git reviews), and this includes the PI.
111
-
- 🟧 Make a flag for **user-needs**: this is needed to stop a block -- it might not be perfect, so make an issue to revisit later. 1 sign off from another user, and go! 🚀
111
+
- 🟧 Make a flag for **user-needs**: this is needed to stop a block -- it might not be perfect, so make an issue to revisit later. 1 sign off from another user, and go! 🚀
112
112
- 🟩 Make a flag for **minor change**: not breaking, can be changed later, 1 sign off okay
113
113
114
114
### Git Workflow
@@ -137,7 +137,7 @@ I recommend the following system for within-lab projects that have different lev
137
137
138
138
1.**Team Communication**
139
139
- Use appropriate channels for different purposes - use basecamp campfire and github issues/PRs
140
-
- Be clear and concise
140
+
- Be clear and concise
141
141
- Document important decisions!!
142
142
- Share knowledge and learnings
143
143
@@ -200,13 +200,13 @@ We use the Google Style Guide: https://google.github.io/styleguide/
200
200
- Spaces after commas and semicolons
201
201
202
202
4.**Naming Conventions**
203
-
- Variables: `lower_snake_case`
204
-
- Functions: `lower_snake_case`
205
-
- Classes: `PascalCase`
206
-
- onstants: `UPPER_SNAKE_CASE`
207
-
- Files: `lower_snake_case.py`
208
-
- Private members: `_single_leading_underscore`
209
-
- Modules/Packages: `lower_snake_case`
203
+
- Variables: `lower_snake_case`
204
+
- Functions: `lower_snake_case`
205
+
- Classes: `PascalCase`
206
+
- onstants: `UPPER_SNAKE_CASE`
207
+
- Files: `lower_snake_case.py`
208
+
- Private members: `_single_leading_underscore`
209
+
- Modules/Packages: `lower_snake_case`
210
210
- Interfaces: `PascalCase` (same as classes, no special prefix)
211
211
212
212
5.**Comments**
@@ -270,4 +270,4 @@ We use the Google Style Guide: https://google.github.io/styleguide/
270
270
271
271
---
272
272
273
-
Remember: These guidelines are living documents. Feel free to suggest improvements and updates as the team evolves and learns.
273
+
Remember: These guidelines are living documents. Feel free to suggest improvements and updates as the team evolves and learns.
0 commit comments