forked from mesa/mesa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (58 loc) · 1.39 KB
/
.pre-commit-config.yaml
File metadata and controls
60 lines (58 loc) · 1.39 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
ci:
autoupdate_schedule: 'monthly'
skip: [vale]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.14
hooks:
# Run the linter.
- id: ruff-check
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py312-plus]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
- id: check-toml
- id: check-yaml
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
# Prose linting with Vale
- repo: https://github.com/errata-ai/vale
rev: v3.13.0
hooks:
- id: vale
name: Vale
description: Check prose style and grammar in documentation
files: \.(md|rst|txt)$
exclude: |
(?x)^(
\.git/|
\.venv/|
venv/|
env/|
node_modules/|
dist/|
build/|
\.eggs/|
.*\.egg-info/|
vendor/|
tests/fixtures/
)
args: [
"--config=.vale.ini",
"--minAlertLevel=error",
"--output=line"
]
pass_filenames: true