precommit lint check

pull/167/head
evelynmitchell 1 year ago
parent 954e580af0
commit 25bc18661e

@ -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
recursive = true
aggressive = 3
[tool.ruff]
line-length = 200

@ -73,4 +73,6 @@ rich
mkdocs
mkdocs-material
mkdocs-glightbox
mkdocs-glightbox
pre-commit

Loading…
Cancel
Save