django-extensions/.pre-commit-config.yaml
Ülgen Sarıkavak a57d3b3357
Add support for Python 3.14 (#1973)
* 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
2026-02-28 19:16:30 +01:00

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