forked from data.coop/membersystem
38 lines
935 B
YAML
38 lines
935 B
YAML
default_language_version:
|
|
python: python3
|
|
exclude: ^.*\b(migrations)\b.*$
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
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/astral-sh/ruff-pre-commit
|
|
rev: 'v0.5.2'
|
|
hooks:
|
|
- id: ruff
|
|
args:
|
|
- --fix
|
|
- id: ruff-format
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.15.2
|
|
hooks:
|
|
- id: pyupgrade
|
|
args:
|
|
- --py311-plus
|
|
exclude: migrations/
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
|
rev: 1.17.0
|
|
hooks:
|
|
- id: django-upgrade
|
|
args:
|
|
- --target-version=5.0
|