1
0
Fork 0

Add precommit config

This commit is contained in:
Daniele Tricoli 2023-02-13 03:12:40 +01:00
parent 5ccb8730fb
commit bca0a82bcb
1 changed files with 36 additions and 0 deletions

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

@ -0,0 +1,36 @@
---
exclude: "^extras/|/dist/"
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: check-toml
# - id: check-yaml
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
additional_dependencies: [toml]
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
hooks:
- id: yesqa
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
args: ["--config=.flake8"]
additional_dependencies: [flake8-isort]