-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (46 loc) · 1.08 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
43
44
45
46
47
---
ci:
autoupdate_schedule: monthly
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
hooks:
- id: ruff
args:
- --fix
# - --unsafe-fixes
- --show-fixes
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
# - id: check-ast
- id: check-case-conflict
# - id: check-executables-have-shebangs
# - id: check-shebang-scripts-are-executable
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
# - id: requirements-txt-fixer
- id: check-json
- id: pretty-format-json
files: ^.*.json$
args:
- --autofix
- --no-sort-keys
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
args: [-c=./.yamllint]
# - repo: https://github.com/jazzband/pip-tools
# rev: 7.4.1
# hooks:
# - id: pip-compile
# files: ^pyproject.toml$
# args: [--output-file=requirements.txt]
# - id: pip-compile
# files: ^pyproject.toml$
# args: [--extra=dev, --output-file=dev-requirements.txt]