|
1 | 1 | # Python Copier Template for Data Science |
2 | 2 |
|
3 | | - [](https://opensource.org/licenses/MIT) |
| 3 | +[](https://opensource.org/licenses/MIT) |
4 | 4 | [](https://github.com/astral-sh/ruff) |
5 | 5 | [](https://github.com/copier-org/copier) |
6 | | -[](https://github.com/pre-commit/pre-commit) |
| 6 | +[](https://github.com/j178/prek) |
7 | 7 |
|
8 | 8 | This is a template built with [Copier](https://github.com/copier-org/copier) to generate a data science focused python project. |
9 | 9 |
|
@@ -78,16 +78,22 @@ In addition, the following rules are only enforced for module code as they are i |
78 | 78 |
|
79 | 79 | The target line length is 120 and the docstring convention is google. |
80 | 80 |
|
81 | | -### [pre-commit](https://github.com/pre-commit/pre-commit) |
| 81 | +### [prek](https://github.com/j178/prek) and [pre-commit](https://github.com/pre-commit/pre-commit) |
82 | 82 |
|
83 | | -pre-commit is a tool that runs checks on your files before you commit them with git, thereby helping ensure code quality. |
84 | | -Enable it with the following command: |
| 83 | +`prek` and `pre-commit` are tools that run checks on your files before you commit them with git, thereby helping ensure code quality. |
| 84 | +`prek` is faster than `pre-commit` and has more features, including monorepo support. |
| 85 | + |
| 86 | +Depending on your preference, run one of the following commands to set up. |
| 87 | + |
| 88 | +```shell |
| 89 | +prek install --prepare-hooks |
| 90 | +``` |
85 | 91 |
|
86 | 92 | ```shell |
87 | 93 | pre-commit install --install-hooks |
88 | 94 | ``` |
89 | 95 |
|
90 | | -The configuration is stored in `.pre-commit-config.yaml`. |
| 96 | +The configuration for both is stored in `.pre-commit-config.yaml`. |
91 | 97 |
|
92 | 98 | ### [nbwipers](https://github.com/felixgwilliams/nbwipers) |
93 | 99 |
|
|
0 commit comments