-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (39 loc) · 998 Bytes
/
.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
# unless otherwise specified, hooks run on push only
default_stages: [push]
repos:
- repo: https://github.com/crate-ci/typos
rev: v1.13.23
hooks:
- id: typos
# formatters and linters are available in the virtualenv so they can be run from the makefile & vscode
- repo: local
hooks:
hooks:
- id: black
name: black
entry: .venv/bin/black
language: system
types: [python]
require_serial: true
- id: ruff
name: ruff
entry: .venv/bin/ruff
language: system
types: [python]
# these hooks require the project's virtualenv
- repo: local
hooks:
- id: pyright
name: pyright
entry: make pyright
# run on all files
pass_filenames: false
language: system
types: [python]
- id: test
name: test
entry: make test
# run on all files
pass_filenames: false
language: system
types: [python]