-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
55 lines (49 loc) · 1.33 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
49
50
51
52
53
54
55
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/ambv/black
rev: 24.2.0
hooks:
# black with default configs
- id: black
args: ["--skip-magic-trailing-comma"]
exclude: 'python_tool_competition_2024/templates/.*'
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
args: ["--fix"]
exclude: "LICENSE.md"
- repo: https://github.com/johann-petrak/licenseheaders.git
rev: v0.8.8
hooks:
- id: licenseheaders
args:
- --tmpl
- .gpl-v3.tmpl
- --years
- "2023"
- --owner
- Nicolas Erni
- -n
- python-tool-competition-2024
- -u
- https://github.com/ThunderKey/python-tool-competition-2024/
- -f
files: "^python_tool_competition_2024/.*\\.py$"
exclude: "^python_tool_competition_2024/templates/"