-
-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
22 lines (22 loc) · 789 Bytes
/
.pre-commit-config.yaml
File metadata and controls
22 lines (22 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
repos:
- repo: local
hooks:
- id: sort_pyproject
name: sort_pyproject
entry: toml-sort -i --sort-table-keys --sort-inline-tables
language: python
files: ^pyproject\.toml$
additional_dependencies: ["toml-sort==0.23.1"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.0
hooks:
- id: ruff-format # formatter
types_or: [ python, pyi, jupyter, toml ]
- id: ruff # linter
types_or: [ python, pyi, jupyter, toml ]
args: [ --fix ]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.405
hooks:
- id: pyright
additional_dependencies: [equinox, jax, jaxtyping, optax, optimistix, lineax, pytest, typeguard==2.13.3, typing_extensions, wadler_lindig]