Adding pre-commit to the repository
This commit is contained in:
Родитель
e7d3426c99
Коммит
51ef3fdaa8
|
@ -0,0 +1,19 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.2.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
|
||||
# Opinionated code formatter to forget about formatting
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 21.12b0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
# Sort imports deterministically
|
||||
- repo: https://github.com/pycqa/isort
|
||||
rev: 5.10.1
|
||||
hooks:
|
||||
- id: isort
|
|
@ -0,0 +1,4 @@
|
|||
black==22.3.0
|
||||
flake8==4.0.1
|
||||
isort==5.10.1
|
||||
pre-commit==2.19.0
|
Загрузка…
Ссылка в новой задаче