membersystem/.pre-commit-config.yaml

61 lines
1.5 KiB
YAML
Raw Permalink 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
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-01-07 14:04:08 +00:00
rev: 'v0.1.11'
hooks:
- id: ruff
args:
- --fix
2021-12-13 19:44:09 +00:00
- repo: https://github.com/asottile/reorder_python_imports
2024-01-07 14:04:08 +00:00
rev: v3.12.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
2024-01-07 14:04:08 +00:00
rev: v3.15.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
2023-10-02 17:56:38 +00:00
rev: 1.15.0
2021-12-13 19:44:09 +00:00
hooks:
- id: django-upgrade
args:
- --target-version=4.1
- repo: https://github.com/asottile/yesqa
2023-09-18 18:58:30 +00:00
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/asottile/add-trailing-comma
2023-09-18 18:58:30 +00:00
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/hadialqattan/pycln
2024-01-07 14:04:08 +00:00
rev: v2.4.0
hooks:
- id: pycln
- repo: https://github.com/psf/black
2024-01-07 14:04:08 +00:00
rev: 23.12.1
hooks:
- id: black