2021-12-13 19:44:09 +00:00
|
|
|
default_language_version:
|
2023-01-11 20:55:58 +00:00
|
|
|
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
|
2023-01-03 20:39:40 +00:00
|
|
|
rev: v4.4.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
|
2023-01-11 20:55:58 +00:00
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
2023-09-18 18:58:30 +00:00
|
|
|
rev: 'v0.0.290'
|
2023-01-11 20:55:58 +00:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
args:
|
|
|
|
- --fix
|
2021-12-13 19:44:09 +00:00
|
|
|
- repo: https://github.com/asottile/reorder_python_imports
|
2023-09-18 18:58:30 +00:00
|
|
|
rev: v3.11.0
|
2021-12-13 19:44:09 +00:00
|
|
|
hooks:
|
|
|
|
- id: reorder-python-imports
|
|
|
|
args:
|
2023-01-11 20:55:58 +00:00
|
|
|
- --py310-plus
|
2021-12-13 19:44:09 +00:00
|
|
|
- --application-directories=.:src
|
|
|
|
exclude: migrations/
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2023-09-18 18:58:30 +00:00
|
|
|
rev: v3.11.0
|
2021-12-13 19:44:09 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args:
|
2023-01-11 20:55:58 +00:00
|
|
|
- --py311-plus
|
2021-12-13 19:44:09 +00:00
|
|
|
exclude: migrations/
|
|
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
2023-09-18 18:58:30 +00:00
|
|
|
rev: 1.14.1
|
2021-12-13 19:44:09 +00:00
|
|
|
hooks:
|
|
|
|
- id: django-upgrade
|
|
|
|
args:
|
2023-01-03 20:39:40 +00:00
|
|
|
- --target-version=4.1
|
2023-01-11 20:55:58 +00:00
|
|
|
- repo: https://github.com/asottile/yesqa
|
2023-09-18 18:58:30 +00:00
|
|
|
rev: v1.5.0
|
2023-01-11 20:55:58 +00:00
|
|
|
hooks:
|
|
|
|
- id: yesqa
|
|
|
|
- repo: https://github.com/asottile/add-trailing-comma
|
2023-09-18 18:58:30 +00:00
|
|
|
rev: v3.1.0
|
2023-01-11 20:55:58 +00:00
|
|
|
hooks:
|
|
|
|
- id: add-trailing-comma
|
|
|
|
args:
|
|
|
|
- --py36-plus
|
|
|
|
- repo: https://github.com/hadialqattan/pycln
|
2023-09-18 18:58:30 +00:00
|
|
|
rev: v2.2.2
|
2023-01-11 20:55:58 +00:00
|
|
|
hooks:
|
|
|
|
- id: pycln
|
|
|
|
- repo: https://github.com/psf/black
|
2023-09-18 18:58:30 +00:00
|
|
|
rev: 23.9.1
|
2023-01-11 20:55:58 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|