-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
64 lines (61 loc) · 1.65 KB
/
.pre-commit-config.yaml
File metadata and controls
64 lines (61 loc) · 1.65 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
52
53
54
55
56
57
58
59
60
61
62
63
64
---
default_install_hook_types: [pre-commit, pre-push]
exclude: |
(?x)^(
outputs/|
wandb/|
multirun/|
dev/|
data/|
.pre-commit-config.yaml
)$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --preview, --extend-ignore=PLR0917,--extend-ignore=PLR0914]
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.16.0
hooks:
- id: yamlfix
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
- id: shfmt
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black-jupyter
language_version: python3.11
args: [ --preview ]
- repo: local
hooks:
- id: mypy
name: mypy
entry: poetry run mypy --incremental --show-traceback
language: system
types: [file, python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 # Use the ref you want to point at
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: detect-private-key
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ""
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: weekly
skip: [mypy]
submodules: false