membersystem/.pre-commit-config.yaml

64 lines
1.6 KiB
YAML
Raw Normal View History

2021-12-13 19:44:09 +00:00
default_language_version:
python: python3.11
exclude: ^.*\b(migrations)\b.*$
2018-06-23 18:54:24 +00:00
repos:
2022-08-09 12:39:02 +00:00
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.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/charliermarsh/ruff-pre-commit
rev: 'v0.0.209'
hooks:
- id: ruff
args:
- --force-exclude
- --fix
2021-12-13 19:44:09 +00:00
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
2021-12-13 19:44:09 +00:00
hooks:
- id: reorder-python-imports
args:
- --py310-plus
2021-12-13 19:44:09 +00:00
- --application-directories=.:src
exclude: migrations/
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
2021-12-13 19:44:09 +00:00
hooks:
- id: pyupgrade
args:
- --py311-plus
2021-12-13 19:44:09 +00:00
exclude: migrations/
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.12.0
2021-12-13 19:44:09 +00:00
hooks:
- id: django-upgrade
args:
- --target-version=4.1
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
hooks:
- id: yesqa
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
hooks:
- id: add-trailing-comma
args:
- --py36-plus
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.2
hooks:
- id: pycln
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black