flask/.pre-commit-config.yaml

38 lines
1 KiB
YAML
Raw Normal View History

2021-05-11 06:57:24 -07:00
ci:
2022-04-08 10:53:28 -07:00
autoupdate_branch: "2.1.x"
2021-05-11 06:57:24 -07:00
autoupdate_schedule: monthly
repos:
2020-04-04 09:43:06 -07:00
- repo: https://github.com/asottile/pyupgrade
2023-04-25 11:40:57 -06:00
rev: v3.3.2
2020-04-04 09:43:06 -07:00
hooks:
- id: pyupgrade
2022-11-25 07:39:54 -08:00
args: ["--py37-plus"]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
name: Reorder Python imports (src, tests)
files: "^(?!examples/)"
2020-04-04 09:43:06 -07:00
args: ["--application-directories", "src"]
2020-11-23 17:15:58 +00:00
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
2021-04-05 17:10:21 +00:00
- repo: https://github.com/PyCQA/flake8
2022-11-25 07:39:54 -08:00
rev: 6.0.0
2019-05-31 13:38:39 -04:00
hooks:
- id: flake8
2020-04-04 09:43:06 -07:00
additional_dependencies:
- flake8-bugbear
- flake8-implicit-str-concat
2022-02-08 12:05:05 -08:00
- repo: https://github.com/peterdemin/pip-compile-multi
2023-02-23 15:58:21 -08:00
rev: v2.6.2
2022-02-08 12:05:05 -08:00
hooks:
- id: pip-compile-multi-verify
2019-05-31 13:38:39 -04:00
- repo: https://github.com/pre-commit/pre-commit-hooks
2022-11-25 07:39:54 -08:00
rev: v4.4.0
2019-05-31 13:38:39 -04:00
hooks:
2021-04-16 08:44:30 -07:00
- id: fix-byte-order-marker
2019-05-31 13:38:39 -04:00
- id: trailing-whitespace
- id: end-of-file-fixer