-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.pre-commit-config.yaml
34 lines (33 loc) · 1013 Bytes
/
.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
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
hooks:
- id: black
args: [--target-version, py312, --preview, --enable-unstable-feature=string_processing]
language_version: python3.12
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.2"
hooks:
- id: ruff
language_version: python3.12
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: \.py$
args:
- --license-filepath
- license_header.txt
- --comment-style
- "\"\"\"||\"\"\""
- --allow-past-years
- --use-current-year
- --no-space-in-comment-prefix
ci:
autofix_commit_msg: "ci: auto fixes from pre-commit.com hooks"
autoupdate_branch: "main"
autoupdate_commit_msg: "ci: pre-commit autoupdate"