forked from dagster-io/dagster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
28 lines (27 loc) · 830 Bytes
/
.pre-commit-config.yaml
File metadata and controls
28 lines (27 loc) · 830 Bytes
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
default_stages: [pre-commit] # don't run on push by default
repos:
- repo: local
hooks:
- id: ruff-format
name: Ruff Format
entry: ruff
args: [format]
language: system
pass_filenames: false
- id: ruff-lint
name: Ruff Lint
entry: ruff
args: [check, --fix, --exit-non-zero-on-fix]
language: system
pass_filenames: false
# We do not use pyright's provided pre-commit hook because we need the environment management
# supplied by `scripts/run-pyright.py`.
- id: pyright
name: pyright
entry: make quick_pyright
stages: [pre-push]
# This means pre-commit will not try to install a new environment for this hook. It relies on
# having a pre-existing `make` installed (and scripts/run-pyright.py).
language: system
pass_filenames: false
types: [python]