|
1 | 1 | repos: |
2 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
3 | | - rev: v2.3.0 |
4 | | - hooks: |
5 | | - - id: check-yaml |
6 | | - - id: end-of-file-fixer |
7 | | - - id: trailing-whitespace |
8 | | - - repo: https://github.com/psf/black |
9 | | - rev: 22.3.0 |
10 | | - hooks: |
11 | | - - id: black |
12 | | - additional_dependencies: ["click==8.0.4"] |
13 | | - - repo: https://github.com/pycqa/isort |
14 | | - rev: 5.10.1 |
15 | | - hooks: |
16 | | - - id: isort |
17 | | - name: isort (python) |
18 | | - - repo: https://github.com/pycqa/flake8 |
19 | | - rev: "6.0.0" |
20 | | - hooks: |
21 | | - - id: flake8 |
22 | | - exclude: ^docs/ |
23 | | - additional_dependencies: |
24 | | - - Flake8-pyproject==1.2.2 |
25 | | - - repo: https://github.com/pycqa/pydocstyle |
26 | | - rev: 4.0.1 |
27 | | - hooks: |
28 | | - - id: pydocstyle |
29 | | - args: |
30 | | - - --ignore=D105,D107,D202,D203,D212,D213,D401,D406,D407,D410,D411,D413 |
31 | | - - repo: https://github.com/koalaman/shellcheck-precommit |
32 | | - rev: v0.8.0 |
33 | | - hooks: |
34 | | - - id: shellcheck |
35 | | - - repo: https://github.com/pre-commit/mirrors-mypy |
36 | | - rev: "v0.990" |
37 | | - hooks: |
38 | | - - id: mypy |
39 | | - args: |
40 | | - - --no-strict-optional |
41 | | - - --ignore-missing-imports |
42 | | - additional_dependencies: |
43 | | - - types-python-dateutil>=2.8.10 |
44 | | - - types-PyYAML<6.1.0,>=5.4 |
45 | | - - types-redis>=3.5.3,<4.1.0 |
46 | | - - types-requests<2.27.2,>=2.23.0 |
47 | | - - types-tabulate<0.8.10,>=0.7.7 |
48 | | - - attrs<21.5.0,>=21.4.0 |
49 | | - - filelock>=3.3.0,<3.6.1 |
50 | | - - repo: https://github.com/hadolint/hadolint |
51 | | - rev: master |
52 | | - hooks: |
53 | | - - id: hadolint-docker |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v4.3.0 |
| 4 | + hooks: |
| 5 | + - id: check-yaml |
| 6 | + exclude: ^helm-chart/renku-core/templates |
| 7 | + - id: check-added-large-files |
| 8 | + - id: check-case-conflict |
| 9 | + - id: check-json |
| 10 | + - id: check-merge-conflict |
| 11 | + - id: check-toml |
| 12 | + - id: debug-statements |
| 13 | + - id: end-of-file-fixer |
| 14 | + types: [python] |
| 15 | + - id: mixed-line-ending |
| 16 | + - id: trailing-whitespace |
| 17 | + - repo: https://github.com/psf/black |
| 18 | + rev: 22.10.0 |
| 19 | + hooks: |
| 20 | + - id: black |
| 21 | + additional_dependencies: ["click==8.0.4"] |
| 22 | + - repo: https://github.com/pycqa/isort |
| 23 | + rev: 5.10.1 |
| 24 | + hooks: |
| 25 | + - id: isort |
| 26 | + name: isort (python) |
| 27 | + - repo: https://github.com/pycqa/flake8 |
| 28 | + rev: "5.0.4" |
| 29 | + hooks: |
| 30 | + - id: flake8 |
| 31 | + exclude: ^docs/ |
| 32 | + args: |
| 33 | + - "--max-line-length=120" |
| 34 | + - "--show-source" |
| 35 | + - "--ignore=E121,E126,E203,E226,E231,W503,W504" |
| 36 | + additional_dependencies: |
| 37 | + - Flake8-pyproject==1.2.2 |
| 38 | + - repo: https://github.com/pycqa/pydocstyle |
| 39 | + rev: 6.1.1 |
| 40 | + hooks: |
| 41 | + - id: pydocstyle |
| 42 | + args: |
| 43 | + - --ignore=D105,D107,D202,D203,D212,D213,D401,D406,D407,D410,D411,D413 |
| 44 | + - repo: https://github.com/koalaman/shellcheck-precommit |
| 45 | + rev: v0.8.0 |
| 46 | + hooks: |
| 47 | + - id: shellcheck |
| 48 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 49 | + rev: "v0.990" |
| 50 | + hooks: |
| 51 | + - id: mypy |
| 52 | + args: |
| 53 | + - --no-strict-optional |
| 54 | + - --ignore-missing-imports |
| 55 | + additional_dependencies: |
| 56 | + - types-python-dateutil>=2.8.10 |
| 57 | + - types-PyYAML<6.1.0,>=5.4 |
| 58 | + - types-redis>=3.5.3,<4.1.0 |
| 59 | + - types-requests<2.27.2,>=2.23.0 |
| 60 | + - types-tabulate<0.8.10,>=0.7.7 |
| 61 | + - attrs<21.5.0,>=21.4.0 |
| 62 | + - filelock>=3.3.0,<3.6.1 |
| 63 | + - repo: https://github.com/hadolint/hadolint |
| 64 | + rev: 'v2.10.0' |
| 65 | + hooks: |
| 66 | + - id: hadolint-docker |
| 67 | + - repo: https://github.com/asottile/yesqa |
| 68 | + rev: v1.4.0 |
| 69 | + hooks: |
| 70 | + - id: yesqa |
| 71 | + - repo: https://github.com/PyCQA/bandit |
| 72 | + rev: '1.7.4' |
| 73 | + hooks: |
| 74 | + - id: bandit |
| 75 | + args: [--configfile, pyproject.toml] |
| 76 | + types: [python] |
| 77 | + additional_dependencies: ["bandit[toml]"] |
| 78 | + - repo: local |
| 79 | + hooks: |
| 80 | + - id: poetry-check |
| 81 | + name: poetry check |
| 82 | + entry: poetry check |
| 83 | + language: system |
| 84 | + files: pyproject.toml |
| 85 | + pass_filenames: false |
0 commit comments