-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.05 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
default_stages: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-toml
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/crate-ci/typos
rev: v1.24.6
hooks:
- id: typos
- repo: https://github.com/astral-sh/ruff-pre-commit # python lint + format
rev: v0.6.7
hooks:
- id: ruff
types_or: [python, pyi, jupyter, toml]
args: [--fix]
stages: [pre-commit, pre-push]
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: local # python typecheck, on push only
hooks:
- id: pyright
name: Pyright
stages: [pre-push]
types_or: [python, pyi, jupyter]
entry: sh -c 'uv sync && uv tool install pyright && uv run pyright'
language: system
pass_filenames: false
always_run: true