You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
355 B
22 lines
355 B
1 year ago
|
Developers
|
||
|
|
||
|
Install pre-commit (https://pre-commit.com/)
|
||
|
|
||
|
```bash
|
||
|
pip install pre-commit
|
||
|
```
|
||
|
|
||
|
Check that it's installed
|
||
|
|
||
|
```bash
|
||
|
pre-commit --versioni
|
||
|
```
|
||
|
|
||
|
This repository already has a pre-commit configuration. To install the hooks, run:
|
||
|
|
||
|
```bash
|
||
|
pre-commit install
|
||
|
```
|
||
|
|
||
|
Now when you make a git commit, the black code formatter and ruff linter will run.
|