-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (50 loc) · 1.51 KB
/
.pre-commit-config.yaml
File metadata and controls
51 lines (50 loc) · 1.51 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
default_stages: [commit, push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-added-large-files
- repo: local
hooks:
- id: ruff-isort
name: ruff isort
entry: poetry run ruff check --fix --select I --config pyproject.toml --show-fixes
types: [python]
language: system
stages: [commit, push]
- id: ruff-format
name: ruff format
entry: poetry run ruff format --config pyproject.toml
types: [python]
language: system
stages: [commit, push]
- id: ruff-check
name: ruff check
entry: poetry run ruff check --config pyproject.toml --output-format concise
types: [python]
language: system
stages: [commit, push]
- id: nbstripout
name: Strip Jupyter notebook output (nbstripout)
entry: poetry run nbstripout
types: [file]
files: (.ipynb)$
language: system
stages: [commit, push]
- id: codespell
name: codespell markdown
entry: poetry run codespell -S CHANGELOG.md
types: [markdown]
language: system
stages: [commit, push]
- id: check-cli-documentation-updated
name: check cli documentation updated
entry: poetry run typer deployer/cli.py utils docs --output docs/CLI_REFERENCE.md --name vertex-deployer
pass_filenames: false
language: system
stages: [push]