|
1 | 1 | repos: |
2 | | -- repo: https://github.com/pre-commit/mirrors-isort |
3 | | - rev: v4.3.17 |
4 | | - hooks: |
5 | | - - id: isort |
6 | | - # language_version: python3.6 |
7 | | -- repo: https://github.com/ambv/black |
8 | | - rev: stable |
9 | | - hooks: |
10 | | - - id: black |
11 | | - # language_version: python3.6 |
12 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
13 | | - rev: v2.0.0 |
14 | | - hooks: |
15 | | - - id: check-case-conflict |
16 | | - - id: end-of-file-fixer |
17 | | - - id: mixed-line-ending |
18 | | - args: |
19 | | - - --fix=lf |
20 | | - - id: trailing-whitespace |
21 | | - - id: flake8 |
22 | | - additional_dependencies: |
23 | | - - flake8-bugbear>=19.3.0 |
24 | | - - flake8-builtins>=1.4.1 |
25 | | - - flake8-commas>=2.0.0 |
26 | | - - flake8-comprehensions>=2.1.0 |
27 | | - - flake8-debugger>=3.1.0 |
28 | | - - flake8-pep3101>=1.2.1 |
29 | | - # language_version: python3.6 |
30 | | - - id: pretty-format-json |
31 | | - args: |
32 | | - - --autofix |
33 | | - - --indent=4 |
34 | | - - --no-sort-keys |
35 | | - - id: check-merge-conflict |
36 | | - - id: check-yaml |
37 | | -- repo: https://github.com/pre-commit/pygrep-hooks |
38 | | - rev: v1.3.0 |
39 | | - hooks: |
40 | | - - id: python-check-blanket-noqa |
41 | | - - id: python-check-mock-methods |
42 | | - - id: python-no-log-warn |
43 | | -- repo: https://github.com/PyCQA/bandit |
44 | | - rev: f5a6f0ca62 # TODO: update once a release > 1.5.1 hits with this change in |
45 | | - hooks: |
46 | | - - id: bandit |
47 | | - files: "^python/" |
48 | | -- repo: local |
49 | | - hooks: |
50 | | - - id: pylint-local |
51 | | - name: pylint-local |
52 | | - description: Run pylint in the local virtualenv |
53 | | - entry: pylint "setup.py" "python/" "tests/" |
54 | | - language: system |
55 | | - # ignore all files, run on hard-coded modules instead |
56 | | - pass_filenames: false |
57 | | - always_run: true |
58 | | - - id: pytest-local |
59 | | - name: pytest-local |
60 | | - description: Run pytest in the local virtualenv |
61 | | - entry: pytest --cov=rpdk.typescript --doctest-modules tests/ |
62 | | - language: system |
63 | | - # ignore all files, run on hard-coded modules instead |
64 | | - pass_filenames: false |
65 | | - always_run: true |
| 2 | + - repo: https://github.com/pre-commit/mirrors-isort |
| 3 | + rev: v4.3.17 |
| 4 | + hooks: |
| 5 | + - id: isort |
| 6 | + # language_version: python3.6 |
| 7 | + - repo: https://github.com/ambv/black |
| 8 | + rev: stable |
| 9 | + hooks: |
| 10 | + - id: black |
| 11 | + # language_version: python3.6 |
| 12 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 13 | + rev: v2.0.0 |
| 14 | + hooks: |
| 15 | + - id: check-case-conflict |
| 16 | + - id: end-of-file-fixer |
| 17 | + - id: mixed-line-ending |
| 18 | + args: |
| 19 | + - --fix=lf |
| 20 | + - id: trailing-whitespace |
| 21 | + - id: flake8 |
| 22 | + additional_dependencies: |
| 23 | + - flake8-bugbear>=19.3.0 |
| 24 | + - flake8-builtins>=1.4.1 |
| 25 | + - flake8-commas>=2.0.0 |
| 26 | + - flake8-comprehensions>=2.1.0 |
| 27 | + - flake8-debugger>=3.1.0 |
| 28 | + - flake8-pep3101>=1.2.1 |
| 29 | + # language_version: python3.6 |
| 30 | + - id: pretty-format-json |
| 31 | + args: |
| 32 | + - --autofix |
| 33 | + - --indent=4 |
| 34 | + - --no-sort-keys |
| 35 | + - id: check-merge-conflict |
| 36 | + - id: check-yaml |
| 37 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 38 | + rev: v1.3.0 |
| 39 | + hooks: |
| 40 | + - id: python-check-blanket-noqa |
| 41 | + - id: python-check-mock-methods |
| 42 | + - id: python-no-log-warn |
| 43 | + - repo: https://github.com/PyCQA/bandit |
| 44 | + rev: 1.6.2 |
| 45 | + hooks: |
| 46 | + - id: bandit |
| 47 | + files: "^python/" |
| 48 | + - repo: https://github.com/pre-commit/mirrors-eslint |
| 49 | + rev: v6.8.0 |
| 50 | + hooks: |
| 51 | + - id: eslint |
| 52 | + args: [--fix] |
| 53 | + types: [] |
| 54 | + files: (.*.js$|.*.ts$) |
| 55 | + additional_dependencies: |
| 56 | + - eslint@6.8.0 |
| 57 | + - repo: local |
| 58 | + hooks: |
| 59 | + - id: pylint-local |
| 60 | + name: pylint-local |
| 61 | + description: Run pylint in the local virtualenv |
| 62 | + entry: pylint "setup.py" "python/" "tests/" |
| 63 | + language: system |
| 64 | + # ignore all files, run on hard-coded modules instead |
| 65 | + pass_filenames: false |
| 66 | + always_run: true |
| 67 | + - id: pytest-local |
| 68 | + name: pytest-local |
| 69 | + description: Run pytest in the local virtualenv |
| 70 | + entry: pytest --cov-report term-missing --cov-report html:coverage/python --cov=rpdk.typescript --doctest-modules tests/ |
| 71 | + language: system |
| 72 | + # ignore all files, run on hard-coded modules instead |
| 73 | + pass_filenames: false |
| 74 | + always_run: true |
| 75 | + - id: jest-local |
| 76 | + name: jest-local |
| 77 | + description: Run jest in the local environment |
| 78 | + entry: npm run test:ci |
| 79 | + language: system |
| 80 | + # ignore all files, run on hard-coded modules instead |
| 81 | + pass_filenames: false |
| 82 | + always_run: true |
0 commit comments