-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (30 loc) · 990 Bytes
/
.pre-commit-config.yaml
File metadata and controls
30 lines (30 loc) · 990 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
29
30
exclude: 'test/core/tests/card_timeout.py'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
- id: check-yaml
args: [--allow-multiple-documents]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
files: ^devtools/ci/
args: [-e, SC1091] # don't follow sourced files
- repo: local
hooks:
- id: check-test-conventions
name: check test conventions
entry: python devtools/check_test_conventions.py
language: python
files: ^test/.*\.py$
types: [python]
- repo: https://github.com/ambv/black
rev: 25.12.0
hooks:
- id: black
language_version: python3
exclude: "^metaflow/_vendor/"
additional_dependencies: ["click<8.1.0"]
args: [-t, py34, -t, py35, -t, py36, -t, py37, -t, py38, -t, py39, -t, py310, -t, py311, -t, py312, -t, py313, -t, py314]