forked from tekumara/fakesnow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.02 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
# unless otherwise specified, hooks run on push only
default_stages: [push]
repos:
- repo: https://github.com/crate-ci/typos
rev: v1.19.0
hooks:
- id: typos
# formatters and linters are available in the virtualenv so they can be run from the makefile & vscode
- repo: local
hooks:
- id: ruff
name: ruff
entry: .venv/bin/ruff check --force-exclude
language: system
types: [python]
require_serial: true
- id: ruff-format
name: ruff-format
entry: .venv/bin/ruff format
language: system
types: [python]
require_serial: true
- id: pyright
name: pyright
entry: node_modules/.bin/pyright
# run on all files to catch type errors that affect unchanged files
pass_filenames: false
language: system
types: [python]
- id: test
name: test
entry: .venv/bin/pytest
# run on all files
pass_filenames: false
language: system
types: [python]