-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (59 loc) · 1.59 KB
/
.pre-commit-config.yaml
File metadata and controls
60 lines (59 loc) · 1.59 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
57
58
59
60
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "CHANGELOG.md"
default_stages: [pre-commit]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version
rev: v0.15.10
hooks:
# Run the linter
- id: ruff-check
types_or: [python, pyi]
args: [--fix]
# Run the formatter
- id: ruff-format
types_or: [python, pyi]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.24.1
hooks:
- id: zizmor
args:
- --pedantic
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
exclude: ^.vscode/
- id: check-toml
- id: no-commit-to-branch
args:
- --branch=main
- --branch=dev
- id: debug-statements
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
- id: yamllint
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.11.6
hooks:
- id: uv-lock
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.20.1
hooks:
- id: mypy
# exclude: cli.py
additional_dependencies:
- "pydantic>=2.0.0"
- "pytest>=8.0.0"
- "types-xmltodict >=1.0.1,<2.0.0"
- "click >=8.0.0,<9.0.0"
- "scapy>=2.6.1,<3.0.0"
args: ["--config-file=./pyproject.toml"]
files: ^pyomnilogic_local/.+\.(py|pyi)$