|
| 1 | +ci: |
| 2 | + skip: [check-jsonschema] |
| 3 | + |
1 | 4 | repos: |
2 | | - - repo: https://github.com/asottile/reorder_python_imports |
3 | | - rev: v3.0.1 |
| 5 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 6 | + rev: v4.1.0 |
4 | 7 | hooks: |
5 | | - - id: reorder-python-imports |
| 8 | + - id: end-of-file-fixer |
| 9 | + - id: check-case-conflict |
| 10 | + - id: check-executables-have-shebangs |
| 11 | + - id: requirements-txt-fixer |
| 12 | + - id: check-added-large-files |
| 13 | + - id: check-case-conflict |
| 14 | + - id: check-toml |
| 15 | + - id: check-yaml |
| 16 | + - id: debug-statements |
| 17 | + - id: forbid-new-submodules |
| 18 | + - id: check-builtin-literals |
| 19 | + - id: trailing-whitespace |
| 20 | + |
6 | 21 | - repo: https://github.com/psf/black |
7 | 22 | rev: 22.3.0 |
8 | 23 | hooks: |
9 | 24 | - id: black |
10 | 25 | args: ["--line-length", "100"] |
11 | | - - repo: https://gitlab.com/pycqa/flake8 |
12 | | - rev: "3.9.2" |
| 26 | + |
| 27 | + - repo: https://github.com/PyCQA/isort |
| 28 | + rev: 5.10.1 |
13 | 29 | hooks: |
14 | | - - id: flake8 |
15 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
16 | | - rev: v4.1.0 |
| 30 | + - id: isort |
| 31 | + files: \.py$ |
| 32 | + args: [--profile=black] |
| 33 | + |
| 34 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 35 | + rev: v2.6.1 |
17 | 36 | hooks: |
18 | | - - id: end-of-file-fixer |
19 | | - - id: check-case-conflict |
20 | | - - id: check-executables-have-shebangs |
21 | | - - id: requirements-txt-fixer |
| 37 | + - id: prettier |
| 38 | + |
| 39 | + - repo: https://github.com/asottile/pyupgrade |
| 40 | + rev: v2.31.1 |
| 41 | + hooks: |
| 42 | + - id: pyupgrade |
| 43 | + args: [--py37-plus] |
| 44 | + |
| 45 | + - repo: https://github.com/PyCQA/doc8 |
| 46 | + rev: 0.11.0 |
| 47 | + hooks: |
| 48 | + - id: doc8 |
| 49 | + args: [--max-line-length=200] |
| 50 | + |
| 51 | + # - repo: https://github.com/pycqa/flake8 |
| 52 | + # rev: 4.0.1 |
| 53 | + # hooks: |
| 54 | + # - id: flake8 |
| 55 | + # additional_dependencies: |
| 56 | + # [ |
| 57 | + # "flake8-bugbear==20.1.4", |
| 58 | + # "flake8-logging-format==0.6.0", |
| 59 | + # "flake8-implicit-str-concat==0.2.0", |
| 60 | + # ] |
| 61 | + |
| 62 | + - repo: https://github.com/sirosen/check-jsonschema |
| 63 | + rev: 0.14.1 |
| 64 | + hooks: |
| 65 | + - id: check-jsonschema |
| 66 | + name: "Check GitHub Workflows" |
| 67 | + files: ^\.github/workflows/ |
| 68 | + types: [yaml] |
| 69 | + args: ["--schemafile", "https://json.schemastore.org/github-workflow"] |
0 commit comments