-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (39 loc) · 1.08 KB
/
.pre-commit-config.yaml
File metadata and controls
39 lines (39 loc) · 1.08 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
repos:
# Use local to make sure the dependencies are taken from pre-commit's own environment and
# therefore from our nix derivation.
- repo: local
hooks:
- id: end-of-file-fixer
name: Ensure each file ends with a single newline
entry: end-of-file-fixer
language: system
types: [text]
- id: trailing-whitespace-fixer
name: Trim trailing whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
- id: ruff-check
name: Ruff linting
entry: ruff check --fix
language: system
types: [python]
require_serial: true
- id: ruff-format
name: Ruff formatting
entry: ruff format
language: system
types: [python]
require_serial: true
- id: rustfmt
name: rustfmt
entry: cargo fmt --
language: system
types: [rust]
pass_filenames: false
- id: nixfmt
name: nixfmt
entry: nixfmt --strict
language: system
types: [nix]
exclude: extra