2020-02-05 18:59:04 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/psf/black
|
2022-01-03 20:10:44 +03:00
|
|
|
rev: f1d4e742c91dd5179d742b0db9293c4472b765f8 # frozen: 21.12b0
|
2020-02-05 18:59:04 +03:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2021-10-15 13:07:53 +03:00
|
|
|
args: ["--target-version", "py37"]
|
2020-02-05 18:59:04 +03:00
|
|
|
# Only .py files, until https://github.com/psf/black/issues/402 resolved
|
|
|
|
files: \.py$
|
|
|
|
types: []
|
|
|
|
|
2020-12-20 02:10:47 +03:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
2022-01-03 20:10:44 +03:00
|
|
|
rev: c5e8fa75dda5f764d20f66a215d71c21cfa198e1 # frozen: 5.10.1
|
2020-06-06 13:13:11 +03:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
|
|
|
|
- repo: https://github.com/asottile/yesqa
|
2022-01-03 20:10:44 +03:00
|
|
|
rev: 35cf7dc24fa922927caded7a21b2a8cb04bf8e10 # frozen: v1.3.0
|
2020-06-06 13:13:11 +03:00
|
|
|
hooks:
|
|
|
|
- id: yesqa
|
|
|
|
|
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
2021-08-12 14:50:09 +03:00
|
|
|
rev: 3592548bbd98528887eeed63486cf6c9bae00b98 # frozen: v1.1.10
|
2020-06-06 13:13:11 +03:00
|
|
|
hooks:
|
|
|
|
- id: remove-tabs
|
|
|
|
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.opt$)
|
|
|
|
|
2021-10-04 19:54:25 +03:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2022-01-03 20:10:44 +03:00
|
|
|
rev: cbeb4c9c4137cff1568659fcc48e8b85cddd0c8d # frozen: 4.0.1
|
2020-02-05 18:59:04 +03:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
2021-08-12 14:50:09 +03:00
|
|
|
rev: 6f51a66bba59954917140ec2eeeaa4d5e630e6ce # frozen: v1.9.0
|
2020-02-05 18:59:04 +03:00
|
|
|
hooks:
|
|
|
|
- id: python-check-blanket-noqa
|
|
|
|
- id: rst-backticks
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-01-03 20:10:44 +03:00
|
|
|
rev: 8fe62d14e0b4d7d845a7022c5c2c3ae41bdd3f26 # frozen: v4.1.0
|
2020-02-05 18:59:04 +03:00
|
|
|
hooks:
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-yaml
|
2021-08-12 15:36:41 +03:00
|
|
|
|
|
|
|
ci:
|
|
|
|
autoupdate_schedule: quarterly
|