-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (31 loc) · 997 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (31 loc) · 997 Bytes
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
exclude: (secrets?\.ya?ml)|(ghcr-pull-secrets\.yaml)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents, --unsafe]
exclude: ^docs/mkdocs.yml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: ^guix/resources/guix-acl-keys/
- repo: local
hooks:
- id: ruff-lint
name: ruff linting
description: Run ruff linting
entry: uv run ruff check --force-exclude
language: system
"types_or": [python, pyi]
require_serial: true
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
name: ruff formatting
description: Run ruff formatting
entry: uv run ruff format --force-exclude
language: system
"types_or": [python, pyi]
require_serial: true