|
1 | 1 | repos: |
2 | 2 | - repo: https://github.com/pre-commit/pre-commit-hooks |
3 | | - rev: v3.4.0 |
| 3 | + rev: v4.1.0 |
4 | 4 | hooks: |
| 5 | + - id: check-ast |
| 6 | + - id: check-builtin-literals |
| 7 | + - id: check-docstring-first |
| 8 | + - id: check-merge-conflict |
5 | 9 | - id: check-yaml |
6 | | - - id: trailing-whitespace |
| 10 | + - id: check-toml |
| 11 | + - id: debug-statements |
7 | 12 | - id: end-of-file-fixer |
| 13 | + - id: trailing-whitespace |
8 | 14 | - repo: https://github.com/asottile/pyupgrade |
9 | | - rev: v2.10.0 |
| 15 | + rev: v2.29.1 |
10 | 16 | hooks: |
11 | 17 | - id: pyupgrade |
12 | | - args: ['--py36-plus'] |
| 18 | + args: [ "--py36-plus" ] |
| 19 | + - repo: https://github.com/PyCQA/isort |
| 20 | + rev: 5.10.1 |
| 21 | + hooks: |
| 22 | + - id: isort |
13 | 23 | - repo: https://github.com/psf/black |
14 | | - rev: 21.4b0 |
| 24 | + rev: 21.12b0 |
15 | 25 | hooks: |
16 | 26 | - id: black |
17 | | - args: [--safe] |
18 | | - - repo: https://github.com/tomcatling/black-nb |
19 | | - rev: 0.5.0 |
| 27 | + args: [ --safe ] |
| 28 | + - repo: https://github.com/asottile/blacken-docs |
| 29 | + rev: v1.12.0 |
20 | 30 | hooks: |
21 | | - - id: black-nb |
22 | | - - repo: https://github.com/PyCQA/isort |
23 | | - rev: 5.7.0 |
| 31 | + - id: blacken-docs |
| 32 | + additional_dependencies: [ black==21.12b0 ] |
| 33 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 34 | + rev: v1.9.0 |
24 | 35 | hooks: |
25 | | - - id: isort |
26 | | - - repo: https://github.com/PyCQA/flake8 |
27 | | - rev: 3.8.4 |
| 36 | + - id: rst-backticks |
| 37 | + - repo: https://github.com/tox-dev/tox-ini-fmt |
| 38 | + rev: "0.5.1" |
28 | 39 | hooks: |
29 | | - - id: flake8 |
30 | | - additional_dependencies: |
31 | | - - 'flake8-bugbear == 20.11.1' |
32 | | - - 'flake8-unused-arguments == 0.0.6' |
33 | | - - 'flake8-comprehensions == 3.3.1' |
| 40 | + - id: tox-ini-fmt |
| 41 | + args: [ "-p", "fix" ] |
34 | 42 | - repo: https://github.com/asottile/setup-cfg-fmt |
35 | | - rev: v1.16.0 |
| 43 | + rev: v1.20.0 |
36 | 44 | hooks: |
37 | 45 | - id: setup-cfg-fmt |
38 | | - - repo: https://github.com/tox-dev/tox-ini-fmt |
39 | | - rev: '0.5.0' |
| 46 | + args: [ --min-py3-version, "3.6", "--max-py-version", "3.10" ] |
| 47 | + - repo: https://github.com/PyCQA/flake8 |
| 48 | + rev: 4.0.1 |
40 | 49 | hooks: |
41 | | - - id: tox-ini-fmt |
42 | | - args: ['-p', 'fix_lint'] |
43 | | - - repo: https://github.com/pre-commit/mirrors-eslint |
44 | | - rev: 'v7.29.0' |
45 | | - hooks: |
46 | | - - id: eslint |
47 | | - files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx |
48 | | - types: [file] |
49 | | - args: ['--fix'] |
| 50 | + - id: flake8 |
50 | 51 | additional_dependencies: |
51 | | - |
52 | | - - [email protected] # prettier used with eslint directly |
53 | | - |
54 | | - |
55 | | - |
56 | | - - '@typescript-eslint/eslint-plugin' |
57 | | - - '@typescript-eslint/parser' |
| 52 | + - flake8-bugbear==21.11.29 |
| 53 | + - flake8-comprehensions==3.7 |
| 54 | + - flake8-pytest-style==1.6 |
| 55 | + - flake8-unused-arguments==0.0.9 |
| 56 | + - flake8-noqa==1.2.1 |
| 57 | + - pep8-naming==0.12.1 |
0 commit comments