-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
91 lines (89 loc) · 2.64 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
default_language_version:
python: python3.11
minimum_pre_commit_version: '3.7.0'
ci:
skip: [
fmt, # cargo not installed on CI
clippy # cargo not installed on CI
]
autoupdate_branch: 'pre-commit/autoupdate'
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
args: ['--py311-plus']
- repo: https://github.com/PyCQA/isort
rev: '5.13.2'
hooks:
- id: isort
args: ['--filter-files', '--settings-file', 'pyproject.toml']
- repo: https://github.com/psf/black
rev: '24.10.0'
hooks:
- id: black
args: ['--config', 'pyproject.toml']
- repo: https://github.com/PyCQA/flake8
rev: '7.1.1'
hooks:
- id: flake8
args: ['--config', '.flake8']
additional_dependencies: [
'git+https://github.com/francis-clairicia/[email protected]'
]
- repo: https://github.com/PyCQA/bandit
rev: '1.8.2'
hooks:
- id: bandit
args: ['-c', '.bandit.yml']
- repo: https://github.com/aio-libs/sort-all
rev: 'v1.3.0'
hooks:
- id: sort-all
types: [] # Overwrite with empty in order to fallback to types_or
types_or: [python, pyi]
- repo: https://github.com/pdm-project/pdm
rev: '2.22.2'
hooks:
- id: pdm-lock-check
- id: pdm-export
name: pdm-export benchmark-servers-deps
args: [
'--no-default',
'--dev',
'--group=benchmark-servers-deps',
'--format=requirements',
'--without-hashes',
'--output=benchmark_server/servers/requirements.txt'
]
- repo: https://github.com/doublify/pre-commit-rust
rev: 'v1.0'
hooks:
- id: fmt
name: cargo fmt (benchmarks)
files: ^(benchmark_server/)
args: ["--manifest-path", "./benchmark_server/Cargo.toml", "--"]
- id: clippy
name: cargo clippy (benchmarks)
files: ^(benchmark_server/)
args: ["--manifest-path", "./benchmark_server/Cargo.toml", "--", "-D", "warnings"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: 'v1.10.0'
hooks:
- id: python-check-blanket-noqa
- id: python-no-log-warn
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
hooks:
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
exclude: \.bumpversion\.cfg # Will always be triggered...
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-yaml