add pre-commit
This commit is contained in:
parent
ef4aaf61b8
commit
992197649c
13
.pre-commit-config.yaml
Normal file
13
.pre-commit-config.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# See https://pre-commit.com for more information
|
||||||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.5.0
|
||||||
|
hooks:
|
||||||
|
- id: check-yaml
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 24.2.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
2
requirements.dev.txt
Normal file
2
requirements.dev.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
black>=24,<25
|
||||||
|
pre-commit>=3.6.2,<4
|
Loading…
Reference in New Issue
Block a user