-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (48 loc) · 1.56 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
52 lines (48 loc) · 1.56 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: check-toml
- id: check-json
# tsconfig files are JSONC; the SAML settings file is a runtime template
exclude: ^(frontend/tsconfig.*\.json|saml/settings\.json)$
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: name-tests-test
args: [--pytest-test-first]
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.4 # keep in sync with the ruff version in uv.lock
hooks:
# first, lint + autofix
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --show-fixes]
# then, format
- id: ruff-format
- repo: https://github.com/jendrikseipp/vulture
rev: v2.14
hooks:
- id: vulture
# ignore-names: keyword-interface parameters implementations accept but do not use
args: [--min-confidence, '80', --ignore-names, 'metric_name,allowed_pie_dimensions',
src/slurm_usage_history, backend/app, scripts]
pass_filenames: false
- repo: local
hooks:
- id: mypy
name: mypy
entry: uv run mypy src/slurm_usage_history backend/app scripts
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/lyz-code/yamlfix
rev: 1.16.1
hooks:
- id: yamlfix