forked from data.coop/membersystem
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
default_language_version:
|
|
python: python3
|
|
repos:
|
|
- repo: https://github.com/psf/black
|
|
rev: 21.12b0
|
|
hooks:
|
|
- id: black
|
|
- repo: git://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
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
|
|
rev: 4.0.1
|
|
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
|
|
rev: v2.6.0
|
|
hooks:
|
|
- id: reorder-python-imports
|
|
args:
|
|
- --py3-plus
|
|
- --application-directories=.:src
|
|
exclude: migrations/
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v2.29.1
|
|
hooks:
|
|
- id: pyupgrade
|
|
args:
|
|
- --py39-plus
|
|
exclude: migrations/
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
|
rev: 1.4.0
|
|
hooks:
|
|
- id: django-upgrade
|
|
args:
|
|
- --target-version=3.2
|