add pre-commit

This commit is contained in:
Dmitry Belyaev 2024-02-21 11:07:23 +03:00
parent ef4aaf61b8
commit 992197649c
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
2 changed files with 15 additions and 0 deletions

13
.pre-commit-config.yaml Normal file
View 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
View File

@ -0,0 +1,2 @@
black>=24,<25
pre-commit>=3.6.2,<4