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-04-08 17:46:52 +00:00
|
|
|
rev: v4.6.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.
|
|
|
|
|
rev: v0.6.3
|
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]
|