2021-10-20 19:52:15 +00:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-11-11 17:42:40 +00:00
|
|
|
rev: v5.0.0
|
2021-10-20 19:52:15 +00:00
|
|
|
hooks:
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
- id: check-added-large-files
|
|
|
|
|
- id: mixed-line-ending
|
|
|
|
|
|
2024-09-01 15:27:45 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
|
# Ruff version.
|
2025-02-10 17:44:28 +00:00
|
|
|
rev: v0.9.6
|
2021-10-20 19:52:15 +00:00
|
|
|
hooks:
|
2024-09-01 15:27:45 +00:00
|
|
|
# Run the linter.
|
|
|
|
|
- id: ruff
|
|
|
|
|
args: [ --fix ]
|
|
|
|
|
# Run the formatter.
|
|
|
|
|
- id: ruff-format
|
2023-02-22 15:08:47 +00:00
|
|
|
|
|
|
|
|
- repo: https://github.com/remastr/pre-commit-django-check-migrations
|
|
|
|
|
rev: v0.1.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: check-migrations-created
|
2023-02-22 15:18:43 +00:00
|
|
|
args: [--manage-path=manage.py]
|
|
|
|
|
additional_dependencies: [django==4.1]
|