-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy path.pre-commit-config.yaml
74 lines (70 loc) · 2.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
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: ^tests/integration|\.patch|^nix/_sources
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: ".*\\.md"
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: ruff
name: Check python (ruff)
language: system
types_or: [python, pyi]
require_serial: true
entry: poetry run ruff check --force-exclude
args:
[--output-format=full, --fix, --show-fixes, --exit-non-zero-on-fix]
- id: ruff-format
name: Format python (ruff)
language: system
types_or: [python, pyi]
require_serial: true
entry: poetry run ruff format --force-exclude
- id: nixfmt
name: Format Nix (nixfmt)
types: [nix]
language: system
require_serial: true
entry: bash -c 'command -v nix && nix "$@" || echo "skipping nixfmt"' nix
args:
- --experimental-features
- nix-command flakes
- --accept-flake-config
- fmt
- id: taplo-format
name: Format TOML (taplo)
language: system
types: [toml]
entry: poetry run taplo format
- id: taplo-lint
name: Lint TOML (taplo)
language: system
types: [toml]
entry: poetry run taplo lint
args:
- --default-schema-catalogs
- repo: https://github.com/jendrikseipp/vulture
rev: v2.14
hooks:
- id: vulture
name: Check vulture
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.0
hooks:
- id: check-github-actions
name: Check Github actions
- id: check-github-workflows
name: Check Github workflows
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 39.100.1
hooks:
- id: renovate-config-validator
args: [--strict]