|
1 | 1 | exclude: ^(.travis.yml|.pre-commit-config.yaml|.bumpversion.cfg)$ |
2 | 2 | fail_fast: true |
3 | 3 | repos: |
4 | | -- repo: https://github.com/pre-commit/mirrors-isort |
5 | | - rev: v5.10.1 |
6 | | - hooks: |
7 | | - - id: isort |
8 | | - # language_version: python3.6 |
9 | | -- repo: https://github.com/ambv/black |
10 | | - rev: 22.3.0 |
11 | | - hooks: |
12 | | - - id: black |
13 | | - exclude: regions_to_partitions.py |
14 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
15 | | - rev: v2.4.0 |
16 | | - hooks: |
17 | | - - id: check-case-conflict |
18 | | - - id: end-of-file-fixer |
19 | | - - id: mixed-line-ending |
20 | | - args: |
21 | | - - --fix=lf |
22 | | - - id: trailing-whitespace |
23 | | - - id: flake8 |
24 | | - additional_dependencies: |
25 | | - - flake8-bugbear>=19.3.0 |
26 | | - - flake8-builtins>=1.4.1 |
27 | | - - flake8-commas>=2.0.0 |
28 | | - - flake8-comprehensions>=2.1.0 |
29 | | - - flake8-debugger>=3.1.0 |
30 | | - - flake8-pep3101>=1.2.1 |
31 | | - - flake8-print>=3.1.0 |
32 | | - # language_version: python3.6 |
33 | | - - id: pretty-format-json |
34 | | - args: |
35 | | - - --autofix |
36 | | - - --indent=4 |
37 | | - - --no-sort-keys |
38 | | - - id: check-merge-conflict |
39 | | -- repo: https://github.com/pre-commit/pygrep-hooks |
40 | | - rev: v1.9.0 |
41 | | - hooks: |
42 | | - - id: python-check-blanket-noqa |
43 | | - - id: python-check-mock-methods |
44 | | - - id: python-no-log-warn |
45 | | -- repo: https://github.com/PyCQA/bandit |
46 | | - rev: 1.7.4 |
47 | | - hooks: |
48 | | - - id: bandit |
49 | | - files: "^taskcat/" |
50 | | - #- repo: https://github.com/pre-commit/mirrors-mypy |
51 | | - # rev: v0.761 |
52 | | - # hooks: |
53 | | - # - id: mypy |
54 | | - # files: "^taskcat/" |
55 | | -- repo: local |
56 | | - hooks: |
57 | | - - id: update-schema |
58 | | - name: update-schema |
59 | | - description: generate schema from dataclasses |
60 | | - entry: ./generate_schema.py |
61 | | - language: system |
62 | | - pass_filenames: false |
63 | | - always_run: true |
64 | | - - id: git-secrets-register-aws |
65 | | - name: git-secrets-register-aws |
66 | | - description: Register AWS patterns with git-secrets |
67 | | - entry: git-secrets --register-aws |
68 | | - language: system |
69 | | - always_run: true |
70 | | - pass_filenames: false |
71 | | - - id: git-secrets |
72 | | - name: git-secrets |
73 | | - description: Run git-secrets |
74 | | - entry: git-secrets --scan |
75 | | - language: system |
76 | | - always_run: true |
77 | | - - id: update-region-mappings |
78 | | - name: update-region-mappings |
79 | | - description: update region-partition mappings |
80 | | - entry: ./update_partition_region_map.py |
81 | | - language: system |
82 | | - pass_filenames: false |
83 | | - always_run: true |
84 | | - - id: pylint-local |
85 | | - name: pylint-local |
86 | | - description: Run pylint in the local virtualenv |
87 | | - entry: pylint "--disable=C0209" "taskcat/" "bin/" |
88 | | - language: system |
89 | | - pass_filenames: false |
90 | | - always_run: true |
91 | | - - id: pytest-local |
92 | | - name: pytest-local |
93 | | - description: Run pytest in the local virtualenv |
94 | | - entry: pytest --cov="./taskcat/" |
95 | | - language: system |
96 | | - pass_filenames: false |
97 | | - always_run: true |
| 4 | + - repo: https://github.com/pre-commit/mirrors-isort |
| 5 | + rev: v5.10.1 |
| 6 | + hooks: |
| 7 | + - id: isort |
| 8 | + # language_version: python3.6 |
| 9 | + - repo: https://github.com/ambv/black |
| 10 | + rev: 22.3.0 |
| 11 | + hooks: |
| 12 | + - id: black |
| 13 | + exclude: regions_to_partitions.py |
| 14 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 15 | + rev: v2.4.0 |
| 16 | + hooks: |
| 17 | + - id: check-case-conflict |
| 18 | + - id: end-of-file-fixer |
| 19 | + - id: mixed-line-ending |
| 20 | + args: |
| 21 | + - --fix=lf |
| 22 | + - id: trailing-whitespace |
| 23 | + - id: flake8 |
| 24 | + additional_dependencies: |
| 25 | + - flake8-bugbear>=19.3.0 |
| 26 | + - flake8-builtins>=1.4.1 |
| 27 | + - flake8-commas>=2.0.0 |
| 28 | + - flake8-comprehensions>=2.1.0 |
| 29 | + - flake8-debugger>=3.1.0 |
| 30 | + - flake8-pep3101>=1.2.1 |
| 31 | + - flake8-print>=3.1.0 |
| 32 | + # language_version: python3.6 |
| 33 | + - id: pretty-format-json |
| 34 | + args: |
| 35 | + - --autofix |
| 36 | + - --indent=4 |
| 37 | + - --no-sort-keys |
| 38 | + - id: check-merge-conflict |
| 39 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 40 | + rev: v1.9.0 |
| 41 | + hooks: |
| 42 | + - id: python-check-blanket-noqa |
| 43 | + - id: python-check-mock-methods |
| 44 | + - id: python-no-log-warn |
| 45 | + - repo: https://github.com/PyCQA/bandit |
| 46 | + rev: 1.8.6 |
| 47 | + hooks: |
| 48 | + - id: bandit |
| 49 | + files: |
| 50 | + "^taskcat/" |
| 51 | + #- repo: https://github.com/pre-commit/mirrors-mypy |
| 52 | + # rev: v0.761 |
| 53 | + # hooks: |
| 54 | + # - id: mypy |
| 55 | + # files: "^taskcat/" |
| 56 | + - repo: local |
| 57 | + hooks: |
| 58 | + - id: update-schema |
| 59 | + name: update-schema |
| 60 | + description: generate schema from dataclasses |
| 61 | + entry: ./generate_schema.py |
| 62 | + language: system |
| 63 | + pass_filenames: false |
| 64 | + always_run: true |
| 65 | + - id: git-secrets-register-aws |
| 66 | + name: git-secrets-register-aws |
| 67 | + description: Register AWS patterns with git-secrets |
| 68 | + entry: git-secrets --register-aws |
| 69 | + language: system |
| 70 | + always_run: true |
| 71 | + pass_filenames: false |
| 72 | + - id: git-secrets |
| 73 | + name: git-secrets |
| 74 | + description: Run git-secrets |
| 75 | + entry: git-secrets --scan |
| 76 | + language: system |
| 77 | + always_run: true |
| 78 | + - id: update-region-mappings |
| 79 | + name: update-region-mappings |
| 80 | + description: update region-partition mappings |
| 81 | + entry: ./update_partition_region_map.py |
| 82 | + language: system |
| 83 | + pass_filenames: false |
| 84 | + always_run: true |
| 85 | + - id: pylint-local |
| 86 | + name: pylint-local |
| 87 | + description: Run pylint in the local virtualenv |
| 88 | + entry: pylint "--disable=C0209" "taskcat/" "bin/" |
| 89 | + language: system |
| 90 | + pass_filenames: false |
| 91 | + always_run: true |
| 92 | + - id: pytest-local |
| 93 | + name: pytest-local |
| 94 | + description: Run pytest in the local virtualenv |
| 95 | + entry: pytest --cov="./taskcat/" |
| 96 | + language: system |
| 97 | + pass_filenames: false |
| 98 | + always_run: true |
0 commit comments