forked from tekumara/fakesnow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (35 loc) · 980 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
# unless otherwise specified, hooks run on push only
default_stages: [push]
repos:
- repo: https://github.com/crate-ci/typos
rev: v1.16.23
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
language: system
types: [python]
- id: black
name: black
entry: .venv/bin/black
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]