2021-01-06 17:50:02 -05:00
|
|
|
repos:
|
2021-01-08 15:47:30 -05:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-12-20 22:00:54 -05:00
|
|
|
rev: v5.0.0
|
2021-01-08 15:47:30 -05:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: detect-private-key
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-docstring-first
|
|
|
|
- id: check-builtin-literals
|
2024-12-20 22:00:54 -05:00
|
|
|
- id: check-illegal-windows-names
|
2021-01-06 17:50:02 -05:00
|
|
|
|
2021-01-08 15:47:30 -05:00
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
2025-01-10 17:07:45 -05:00
|
|
|
rev: v2.7.0
|
2021-01-08 15:47:30 -05:00
|
|
|
hooks:
|
|
|
|
- id: setup-cfg-fmt
|
2021-01-07 17:00:42 -05:00
|
|
|
|
2024-12-20 22:00:54 -05:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2025-01-10 17:07:45 -05:00
|
|
|
rev: v0.9.0
|
2021-01-08 15:47:30 -05:00
|
|
|
hooks:
|
2024-12-20 22:00:54 -05:00
|
|
|
- id: ruff
|
|
|
|
###### Relevant part below ######
|
|
|
|
- id: ruff
|
|
|
|
args: ["check", "--select", "I", "--fix"]
|
|
|
|
###### Relevant part above ######
|
|
|
|
- id: ruff-format
|
2025-01-03 12:29:31 -05:00
|
|
|
|
|
|
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
|
|
# uv version.
|
2025-01-10 17:07:45 -05:00
|
|
|
rev: 0.5.16
|
2025-01-03 12:29:31 -05:00
|
|
|
hooks:
|
|
|
|
# Compile requirements
|
|
|
|
- id: pip-compile
|
|
|
|
name: pip-compile requirements.in
|
2025-01-07 10:05:25 -05:00
|
|
|
args: [--resolver, backtracking, --annotation-style=line, requirements.in, -o, requirements.txt]
|
2025-01-03 12:29:31 -05:00
|
|
|
- id: pip-compile
|
|
|
|
name: pip-compile requirements-dev.in
|
2025-01-07 10:05:25 -05:00
|
|
|
args: [--resolver, backtracking, --annotation-style=line, requirements-dev.in, -o, requirements-dev.txt]
|
2025-01-03 12:29:31 -05:00
|
|
|
files: ^requirements-dev\.(in|txt)$
|