python-click/.pre-commit-config.yaml

33 lines
876 B
YAML
Raw Permalink Normal View History

2021-10-10 03:31:57 +02:00
ci:
2022-11-30 09:52:01 +01:00
autoupdate_branch: "8.1.x"
2021-10-10 03:31:57 +02:00
autoupdate_schedule: monthly
repos:
- repo: https://github.com/asottile/pyupgrade
2022-11-30 09:52:01 +01:00
rev: v2.32.0
2021-10-10 03:31:57 +02:00
hooks:
- id: pyupgrade
2022-11-30 09:52:01 +01:00
args: ["--py37-plus"]
2021-10-10 03:31:57 +02:00
- repo: https://github.com/asottile/reorder_python_imports
2022-11-30 09:52:01 +01:00
rev: v3.1.0
2021-10-10 03:31:57 +02:00
hooks:
- id: reorder-python-imports
args: ["--application-directories", "src"]
2022-11-30 09:52:01 +01:00
additional_dependencies: ["setuptools>60.9"]
2021-10-10 03:31:57 +02:00
- repo: https://github.com/psf/black
2022-11-30 09:52:01 +01:00
rev: 22.3.0
2021-10-10 03:31:57 +02:00
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
2022-11-30 09:52:01 +01:00
rev: 4.0.1
2021-10-10 03:31:57 +02:00
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-implicit-str-concat
- repo: https://github.com/pre-commit/pre-commit-hooks
2022-11-30 09:52:01 +01:00
rev: v4.2.0
2021-10-10 03:31:57 +02:00
hooks:
- id: fix-byte-order-marker
- id: trailing-whitespace
- id: end-of-file-fixer