forked from dagster-io/dagster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
34 lines (33 loc) · 996 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
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
- id: docs-mdx-format
name: Format Docs
language: system
entry: bash -c "cd docs && make mdx-format"
pass_filenames: false
files: ^docs/content
# 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]