-
-
Notifications
You must be signed in to change notification settings - Fork 360
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (38 loc) · 975 Bytes
/
.pre-commit-config.yaml
File metadata and controls
39 lines (38 loc) · 975 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
34
35
36
37
38
39
---
ci:
# format compatible with commitlint
autoupdate_commit_msg: "chore: pre-commit autoupdate"
autoupdate_schedule: monthly
autofix_commit_msg: |
chore: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
# exclude: >
# (?x)^(
# )$
repos:
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
language_version: python3
- repo: local
hooks:
- id: ruff-check
name: ruff-check
entry: ruff check
language: system
types: [python]
- id: ruff-format
name: ruff
entry: ruff format --check --diff
language: system
types: [python]