mirror of
https://github.com/django-extensions/django-extensions.git
synced 2026-03-12 07:32:40 +03:00
* Add Python 3.14 support * Update pyproject-fmt hook The previous version doesn't recognize Python 3.14 and tries to remove it from trove classifiers * Update Python versions in CI
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: check-added-large-files
|
|
args:
|
|
- --maxkb=128
|
|
- id: check-ast
|
|
- id: check-case-conflict
|
|
- id: check-docstring-first
|
|
- id: check-json
|
|
- id: check-merge-conflict
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
- id: detect-private-key
|
|
- id: mixed-line-ending
|
|
args: [ '--fix=lf' ]
|
|
description: Forces to replace line ending by the UNIX 'lf' character.
|
|
- id: name-tests-test
|
|
args:
|
|
- --django
|
|
exclude: ^tests/testapp|^tests/management/|^tests/collisions/|^tests/pythonrc.py|^tests/runner.py
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: v0.11.4
|
|
hooks:
|
|
# Run the linter.
|
|
- id: ruff
|
|
# Run the formatter.
|
|
- id: ruff-format
|
|
args:
|
|
- --diff
|
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
rev: v2.11.1
|
|
hooks:
|
|
- id: pyproject-fmt
|
|
args:
|
|
- --check
|
|
- repo: https://github.com/trbs/pre-commit-hooks-trbs.git
|
|
rev: 1.2.4
|
|
hooks:
|
|
- id: forbid-executables
|
|
exclude: manage.py|setup.py
|