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
If you wish to contribute to scientific-python.org:
47
+
48
+
1. Fork and clone the repository
49
+
2. Create a new branch with your proposed feature or change to the package repository
50
+
51
+
### Code Style / Pre-commit
52
+
53
+
We use `pre-commit` to ensure the code style is consistent. To install pre-commit locally:
54
+
55
+
1. First install pre-commit: `pip install pre-commit`
56
+
2. Install all of the pre-commit hooks by running `pre-commit install`
57
+
58
+
Once you have `pre-commit` installed, the code stylers and linters
59
+
defined in the `.pre-commit-config.yaml` will run each time you
60
+
commit modified changes to git locally.
61
+
62
+
### Precommit.ci Bot
63
+
64
+
We use the pre-commit CI bot to run linting tests and to auto fix
65
+
pull requests. How it works:
66
+
67
+
- Pre-commit.ci will run the CI checks via a CI run in the PR.
68
+
- After the PR is approved but before it's merged, a maintainer can run the bot to apply linting fixes via a commit to the PR. To run the bot write:
69
+
70
+
`pre-commit.ci autofix` in a comment in the PR. This will trigger another CI run to double check that the linting / code style fixes are as expected. Then you can merge!
71
+
72
+
NOTE: the pre-commit CI bot CI action will allow you to see what checks pass. It will also remind you of the command to autofix the code in the pr.
0 commit comments