Install and configure pre-commit (to work with isort, black and flake8).

This commit is contained in:
Davide Casale
2024-02-27 19:16:54 +01:00
parent 1a6f4eaa21
commit e4c7acd2c7
3 changed files with 20 additions and 3 deletions

View File

@@ -3,9 +3,9 @@ max-line-length = 80
extend-select = B950
extend-ignore = E203,E501,E701
per-file-ignores = */__init__.py:F401
exclude =
__pycache__
dist,
dist
venv
per-file-ignores = */__init__.py:F401

17
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [
flake8-bugbear
]

Binary file not shown.