membersystem/.pre-commit-config.yaml

37 lines
903 B
YAML
Raw Normal View History

2021-12-13 20:44:09 +01:00
default_language_version:
python: python3
2018-06-23 20:54:24 +02:00
repos:
2022-08-09 14:39:02 +02:00
- repo: https://github.com/pre-commit/pre-commit-hooks
2024-05-31 21:26:20 +02:00
rev: v4.6.0
2021-12-13 20:44:09 +01: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-15 00:19:37 +02:00
- repo: https://github.com/astral-sh/ruff-pre-commit
2024-07-14 20:55:22 +02:00
rev: 'v0.5.2'
hooks:
- id: ruff
args:
- --fix
2024-02-29 21:25:59 +01:00
- id: ruff-format
2021-12-13 20:44:09 +01:00
- repo: https://github.com/asottile/pyupgrade
2024-07-14 20:55:22 +02:00
rev: v3.16.0
2021-12-13 20:44:09 +01:00
hooks:
- id: pyupgrade
args:
- --py311-plus
2021-12-13 20:44:09 +01:00
exclude: migrations/
- repo: https://github.com/adamchainz/django-upgrade
2024-07-14 20:55:22 +02:00
rev: 1.19.0
2021-12-13 20:44:09 +01:00
hooks:
- id: django-upgrade
args:
2024-02-29 21:25:59 +01:00
- --target-version=5.0