-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
42 lines (38 loc) · 1.07 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
repos:
# - repo: https://github.com/PyCQA/isort
# rev: 5.13.2
# hooks:
# - id: isort
# name: isort (python)
# - repo: https://github.com/psf/black
# rev: 24.4.2
# hooks:
# - id: black
# name: "Code formatter"
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.9
hooks:
# # Run the linter.
- id: ruff
args: [ '--fix' ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
name: "End of file fixer"
- id: mixed-line-ending
name: "Mixed line ending fixer"
- id: check-yaml
name: "Yaml checker"
args: [ '--unsafe' ]
files: ^configs/.*\.ya?ml$
- id: trailing-whitespace
name: "Trailing whitespace fixer"
- id: debug-statements
name: "Debug imports and breakpoints checker"
- id: requirements-txt-fixer
name: "Requirements txt fixer"
files: requirements/requirements.*\.txt$