forked from projectmesa/mesa-frames
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (47 loc) · 1.23 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
ci:
autoupdate_schedule: 'monthly'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.6
hooks:
# Run the linter.
- id: ruff
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.17.0
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.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.3.0
hooks:
- id: codespell
args: [
"--ignore-words",
".codespellignore",
]
- repo: https://github.com/DavidAnson/markdownlint-cli2 #For formatting markdown for documentation
rev: v0.13.0
hooks:
- id: markdownlint-cli2
args: [
"--fix",
"--config",
".markdownlint.json",
]
- repo: https://github.com/jsh9/pydoclint #For checking docstrings
rev: 0.5.6
hooks:
- id: pydoclint
args: [--style=numpy, --skip-checking-raises=True, --allow-init-docstring=True]