forked from dagster-io/dagster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
22 lines (21 loc) · 983 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
repos:
- repo: https://github.com/psf/black
rev: refs/tags/22.12.0:refs/tags/22.12.0
# We need two instances of the black pre-commit hook because black can only run with a single
# config, but we need different configs for docs_snippets and the rest of the repo due to
# differing line lengths.
hooks:
- id: black-jupyter
exclude: "examples/docs_snippets|snapshots/"
# Make sure black reads its config from root `pyproject.toml`. This is necessary for commits
# where all files share a common root with a pyproject.toml file. Black config will by default
# resolve to this pyproject.toml, which will cause use of default line-length instead of the
# length specified in the root config.
args: ["--config", "pyproject.toml"]
- id: black-jupyter
name: black-jupyter [docs-snippets]
files: "^examples/docs_snippets/.*.py"
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.255
hooks:
- id: ruff