forked from SwissDataScienceCenter/renku-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
87 lines (87 loc) · 2.38 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
exclude: ^helm-chart/renku-core/templates
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
types: [python]
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
additional_dependencies: ["click==8.0.4"]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pycqa/flake8
rev: "5.0.4"
hooks:
- id: flake8
exclude: ^docs/
args:
- "--max-line-length=120"
- "--show-source"
- "--ignore=E121,E126,E203,E226,E231,W503,W504"
additional_dependencies:
- Flake8-pyproject==1.2.2
- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
args:
- --ignore=D105,D107,D202,D203,D212,D213,D401,D406,D407,D410,D411,D413
additional_dependencies:
- toml
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.8.0
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.990"
hooks:
- id: mypy
args:
- --no-strict-optional
- --ignore-missing-imports
additional_dependencies:
- types-python-dateutil>=2.8.10
- types-PyYAML<6.1.0,>=5.4
- types-redis>=3.5.3,<4.1.0
- types-requests<2.27.2,>=2.23.0
- types-tabulate<0.8.10,>=0.7.7
- attrs<21.5.0,>=21.4.0
- filelock>=3.3.0,<3.6.1
- repo: https://github.com/hadolint/hadolint
rev: 'v2.10.0'
hooks:
- id: hadolint-docker
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
hooks:
- id: yesqa
- repo: https://github.com/PyCQA/bandit
rev: '1.7.4'
hooks:
- id: bandit
args: [--configfile, pyproject.toml]
types: [python]
additional_dependencies: ["bandit[toml]"]
- repo: local
hooks:
- id: poetry-check
name: poetry check
entry: poetry check
language: system
files: pyproject.toml
pass_filenames: false