membersystem/.pre-commit-config.yaml

38 lines
942 B
YAML
Raw Permalink Normal View History

2021-12-13 19:44:09 +00:00
default_language_version:
2024-02-29 20:25:59 +00:00
python: python3.12
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
2024-01-07 14:04:08 +00:00
rev: v4.5.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
2024-02-29 20:25:59 +00:00
rev: 'v0.3.0'
hooks:
- id: ruff
args:
- --fix
2024-02-29 20:25:59 +00:00
- id: ruff-format
2021-12-13 19:44:09 +00:00
- repo: https://github.com/asottile/pyupgrade
2024-02-29 20:25:59 +00:00
rev: v3.15.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
2024-02-29 20:25:59 +00:00
rev: 1.16.0
2021-12-13 19:44:09 +00:00
hooks:
- id: django-upgrade
args:
2024-02-29 20:25:59 +00:00
- --target-version=5.0