-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (52 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
56 lines (52 loc) · 1.29 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
default_install_hook_types: ["pre-push"]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.6
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
# docformatter - formats docstrings to follow PEP 257
- repo: https://github.com/pycqa/docformatter
# todo: replace when >v1.7.5 will be published
rev: 06907d0267368b49b9180eed423fae5697c1e909
hooks:
- id: docformatter
name: docformatter
args:
[
-r,
-i,
--pre-summary-newline,
--make-summary-multi-line,
--wrap-summaries,
"90",
--wrap-descriptions,
"90",
"boussole",
]
- repo: local
hooks:
- id: pylint
name: Run Pylint
entry: "pylint"
args: ["./boussole/*"]
language: system
types: [python]
- repo: local
hooks:
- id: pytest
name: Run Pytest
entry: make
args: ["test"]
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
files: ^.*\.(py|c|h|md|rst|yml)$