membersystem/.pre-commit-config.yaml

38 lines
935 B
YAML
Raw Permalink Normal View History

2021-12-13 19:44:09 +00:00
default_language_version:
python: python3
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-05-31 19:26:20 +00:00
rev: v4.6.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
2024-07-14 22:19:37 +00:00
- repo: https://github.com/astral-sh/ruff-pre-commit
2024-07-14 18:55:22 +00:00
rev: 'v0.5.2'
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-07-14 18:55:22 +00:00
rev: v3.16.0
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-07-14 18:55:22 +00:00
rev: 1.19.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