membersystem/.pre-commit-config.yaml

51 lines
1.3 KiB
YAML
Raw Normal View History

2021-12-13 19:44:09 +00:00
default_language_version:
python: python3
2018-06-23 18:54:24 +00:00
repos:
2021-12-13 19:44:09 +00:00
- repo: https://github.com/psf/black
2022-08-09 12:39:02 +00:00
rev: 22.6.0
2021-12-13 19:44:09 +00:00
hooks:
- id: black
2022-08-09 12:39:02 +00:00
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
2021-12-13 19:44:09 +00:00
hooks:
- id: check-ast
- id: check-merge-conflict
- id: check-case-conflict
- id: detect-private-key
- id: check-added-large-files
- id: check-json
- id: check-symlinks
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
2022-08-09 12:39:02 +00:00
rev: 5.0.4
2021-12-13 19:44:09 +00:00
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
- flake8-tidy-imports
args: [--max-line-length=88, --extend-exclude=src/project/settings/deployments/*]
- repo: https://github.com/asottile/reorder_python_imports
2022-08-09 12:39:02 +00:00
rev: v3.8.2
2021-12-13 19:44:09 +00:00
hooks:
- id: reorder-python-imports
args:
- --py3-plus
- --application-directories=.:src
exclude: migrations/
- repo: https://github.com/asottile/pyupgrade
2022-08-09 12:39:02 +00:00
rev: v2.37.3
2021-12-13 19:44:09 +00:00
hooks:
- id: pyupgrade
args:
- --py39-plus
exclude: migrations/
- repo: https://github.com/adamchainz/django-upgrade
2022-08-09 12:39:02 +00:00
rev: 1.7.0
2021-12-13 19:44:09 +00:00
hooks:
- id: django-upgrade
args:
- --target-version=3.2