forked from mesa/mesa-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (36 loc) · 971 Bytes
/
.pre-commit-config.yaml
File metadata and controls
37 lines (36 loc) · 971 Bytes
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
ci:
autoupdate_schedule: 'monthly'
autofix_prs: true
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.4
hooks:
# Run the linter with fix argument.
- id: ruff-check
types_or: [ python, pyi, jupyter ]
args: [--fix] # This will enable automatic fixing of lint issues where possible.
# 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
args: [
"--ignore-words",
".codespellignore",
"--ignore-regex",
"[A-Za-z0-9+/]{100,}",
]