Merge pull request #167 from evelynmitchell/master

precommit lint check and Developer doc
pull/170/head
Eternal Reclaimer 1 year ago committed by GitHub
commit 0036dcf864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
[flake8]
extend-ignore = E501, W292, W291

@ -0,0 +1,21 @@
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.

@ -82,3 +82,6 @@ ignore = "E501,W6" # or ["E501", "W6"]
in-place = true in-place = true
recursive = true recursive = true
aggressive = 3 aggressive = 3
[tool.ruff]
line-length = 200

@ -74,3 +74,5 @@ rich
mkdocs mkdocs
mkdocs-material mkdocs-material
mkdocs-glightbox mkdocs-glightbox
pre-commit

Loading…
Cancel
Save