|
1 | 1 | repos: |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v5.0.0 |
| 4 | + hooks: |
| 5 | + - id: check-added-large-files |
| 6 | + - id: check-case-conflict |
| 7 | + - id: check-merge-conflict |
| 8 | + - id: check-symlinks |
| 9 | + - id: check-yaml |
| 10 | + - id: debug-statements |
| 11 | + - id: end-of-file-fixer |
| 12 | + - id: mixed-line-ending |
| 13 | + # - id: name-tests-test |
| 14 | + # args: ["--pytest-test-first"] |
| 15 | + - id: requirements-txt-fixer |
| 16 | + - id: trailing-whitespace |
| 17 | + |
| 18 | + - repo: https://github.com/rbubley/mirrors-prettier |
| 19 | + rev: v3.4.2 |
| 20 | + hooks: |
| 21 | + - id: prettier |
| 22 | + types_or: [yaml, markdown, html, css, scss, javascript, json] |
| 23 | + args: [--prose-wrap=always] |
| 24 | + |
2 | 25 | - repo: https://github.com/MarcoGorelli/absolufy-imports |
3 | 26 | rev: v0.3.1 |
4 | 27 | hooks: |
5 | 28 | - id: absolufy-imports |
6 | 29 | name: absolufy-imports |
7 | | - - repo: https://github.com/psf/black |
8 | | - rev: 23.12.1 |
9 | | - hooks: |
10 | | - - id: black |
11 | | - language_version: python3 |
12 | | - args: |
13 | | - - --target-version=py38 |
| 30 | + |
14 | 31 | - repo: https://github.com/astral-sh/ruff-pre-commit |
15 | | - rev: v0.1.14 |
| 32 | + rev: v0.8.4 |
16 | 33 | hooks: |
17 | 34 | - id: ruff |
18 | 35 | args: ["--fix", "--show-fixes"] |
| 36 | + - id: ruff-format |
| 37 | + |
| 38 | + - repo: https://github.com/codespell-project/codespell |
| 39 | + rev: v2.3.0 |
| 40 | + hooks: |
| 41 | + - id: codespell |
| 42 | + additional_dependencies: |
| 43 | + - tomli |
| 44 | + |
| 45 | + - repo: https://github.com/shellcheck-py/shellcheck-py |
| 46 | + rev: "v0.10.0.1" |
| 47 | + hooks: |
| 48 | + - id: shellcheck |
| 49 | + |
| 50 | + - repo: https://github.com/abravalheri/validate-pyproject |
| 51 | + rev: v0.23 |
| 52 | + hooks: |
| 53 | + - id: validate-pyproject |
| 54 | + additional_dependencies: ["validate-pyproject-schema-store[all]"] |
| 55 | + |
| 56 | + - repo: https://github.com/python-jsonschema/check-jsonschema |
| 57 | + rev: "0.30.0" |
| 58 | + hooks: |
| 59 | + - id: check-dependabot |
| 60 | + - id: check-github-workflows |
| 61 | + |
19 | 62 | - repo: https://github.com/pre-commit/mirrors-mypy |
20 | | - rev: v1.8.0 |
| 63 | + rev: v1.14.0 |
21 | 64 | hooks: |
22 | 65 | - id: mypy |
23 | 66 | additional_dependencies: |
|
0 commit comments