-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
59 lines (57 loc) · 1.36 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
56
57
58
59
default_language_version:
python: python3.11
repos:
- repo: https://github.com/regebro/pyroma
rev: "4.2"
hooks:
- id: pyroma
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
additional_dependencies: ["tomli"]
files: cashocs/
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
files: cashocs/
- repo: https://github.com/PyCQA/bandit
rev: 1.8.0
hooks:
- id: bandit
files: cashocs/
- repo: https://github.com/PyCQA/pylint
rev: v3.3.2
hooks:
- id: pylint
files: cashocs/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
files: cashocs/
additional_dependencies: ["numpy"]
args: [--config-file, pyproject.toml]
- repo: https://github.com/PyCQA/prospector
rev: v1.13.3
hooks:
- id: prospector
additional_dependencies:
- ".[with_mypy,with_bandit,with_pyroma]"
files: cashocs/
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.3
hooks:
# Run the linter.
- id: ruff
files: cashocs/