-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.pre-commit-config.yaml
48 lines (48 loc) · 1.38 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
exclude: ^secrets/|^appenv$|pkgs/fc/sensusyntax/fixtures/(syntaxerror|empty).json|(tests/testlib.nix|nixos/roles/devhost/vm.nix|tests/physical-installer.nix)|^changelog.d/new_fragment.md.j2$|tests/.+\.py
repos:
- hooks:
- id: detect-private-key
- id: check-added-large-files
- exclude: "(?x)^(\n secrets/|environments/.*/secret.*|\n .*\\.patch\n)$\n"
id: trailing-whitespace
- exclude: "(?x)^(\n environments/.*/secret.*|\n .*\\.patch\n)$\n"
id: end-of-file-fixer
- exclude: "(?x)^(\n environments/.*/secret.*|\n .*\\.patch\n)$\n"
id: check-yaml
- exclude: "(?x)^(\n environments/.*/secret.*|\n .*\\.patch\n)$\n"
id: check-json
- exclude: "(?x)^(\n environments/.*/secret.*|\n .*\\.patch\n)$\n"
id: check-xml
- exclude: "(?x)^(\n environments/.*/secret.*|\n .*\\.patch\n)$\n"
id: check-toml
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
- hooks:
- args:
- --profile
- black
- --filter-files
id: isort
name: isort (python)
repo: https://github.com/pycqa/isort
rev: 6.0.1
- hooks:
- id: black
repo: https://github.com/psf/black
rev: 25.1.0
- hooks:
- args:
- --ignore
- E501
- --ignore
- F401
id: ruff
repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
- hooks:
- entry: nixfmt
files: \.nix$
id: nixfmt
language: system
name: nixfmt
repo: local