ha-supervisor/.pre-commit-config.yaml

35 lines
867 B
YAML
Raw Permalink Normal View History

2020-07-05 20:20:29 +02:00
repos:
- repo: https://github.com/psf/black
2022-07-05 11:05:09 +02:00
rev: 22.6.0
2020-07-05 20:20:29 +02:00
hooks:
- id: black
args:
- --safe
- --quiet
- --target-version
- py310
2020-07-05 20:20:29 +02:00
files: ^((supervisor|tests)/.+)?[^/]+\.py$
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
additional_dependencies:
- flake8-docstrings==1.5.0
- pydocstyle==5.0.2
files: ^(supervisor|script|tests)/.+\.py$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-executables-have-shebangs
stages: [manual]
- id: check-json
2021-10-18 20:28:38 +02:00
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
2020-07-05 20:20:29 +02:00
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
2020-07-05 20:20:29 +02:00
hooks:
- id: pyupgrade
args: [--py310-plus]