-
Notifications
You must be signed in to change notification settings - Fork 52
/
.pre-commit-config.yaml
49 lines (46 loc) · 1.11 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: local
hooks:
- id: poetry-pyproject-check
name: "poetry: pyproject.toml check"
language: system
entry: poetry
args: ["check"]
files: '^(pyproject\.toml)$'
pass_filenames: false
- id: poetry-lockfile-consistency
name: "poetry: lockfile consistency check"
language: system
entry: poetry
args: ['lock', '--check']
files: '^(pyproject\.toml)|(poetry\.lock)$'
pass_filenames: false
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
exclude: '^(doc/)|(examples/)|(futures/)|(utils/)'
- id: interpolate-workflows
name: Interpolate Github workflows
entry: python ./utils/interpolate_yaml_anchors.py
language: system
files: |
(?x)^(
.github/(.)*|
utils/interpolate_yaml_anchors.py
)$
pass_filenames: false