|
| 1 | +ci: |
| 2 | + autoupdate_commit_msg: "chore(deps): update pre-commit hooks" |
| 3 | + autofix_commit_msg: "style: pre-commit fixes" |
| 4 | + autoupdate_schedule: "quarterly" |
| 5 | + |
| 6 | +exclude: "^({{cookiecutter\\.project_name}}|hooks/pre_gen_project.py$)" |
| 7 | + |
| 8 | +repos: |
| 9 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 10 | + rev: "v6.0.0" |
| 11 | + hooks: |
| 12 | + - id: check-added-large-files |
| 13 | + - id: check-case-conflict |
| 14 | + - id: check-merge-conflict |
| 15 | + - id: check-symlinks |
| 16 | + - id: check-yaml |
| 17 | + - id: debug-statements |
| 18 | + - id: end-of-file-fixer |
| 19 | + - id: mixed-line-ending |
| 20 | + - id: name-tests-test |
| 21 | + args: ["--pytest-test-first"] |
| 22 | + - id: requirements-txt-fixer |
| 23 | + - id: trailing-whitespace |
| 24 | + |
| 25 | + - repo: https://github.com/adamchainz/blacken-docs |
| 26 | + rev: "1.20.0" |
| 27 | + hooks: |
| 28 | + - id: blacken-docs |
| 29 | + additional_dependencies: [black==24.*] |
| 30 | + |
| 31 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 32 | + rev: "v0.15.6" |
| 33 | + hooks: |
| 34 | + - id: ruff-check |
| 35 | + args: ["--fix", "--show-fixes"] |
| 36 | + - id: ruff-format |
| 37 | + |
| 38 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 39 | + rev: "v1.10.0" |
| 40 | + hooks: |
| 41 | + - id: rst-backticks |
| 42 | + - id: rst-directive-colons |
| 43 | + - id: rst-inline-touching-normal |
| 44 | + |
| 45 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 46 | + rev: "v1.19.1" |
| 47 | + hooks: |
| 48 | + - id: mypy |
| 49 | + files: "(src|tests|noxfile.py)" |
| 50 | + args: [] |
| 51 | + additional_dependencies: |
| 52 | + - click |
| 53 | + - markdown-it-py |
| 54 | + - pytest |
| 55 | + - nox |
| 56 | + - orjson |
| 57 | + - repo-review>=0.10.6 |
| 58 | + - rich |
| 59 | + - tomli>=2.0.2 |
| 60 | + - types-PyYAML |
| 61 | + |
| 62 | + - repo: https://github.com/rbubley/mirrors-prettier |
| 63 | + rev: "v3.8.1" |
| 64 | + hooks: |
| 65 | + - id: prettier |
| 66 | + types_or: [yaml, markdown, html, css, scss, javascript, json] |
| 67 | + args: [--prose-wrap=always] |
| 68 | + |
| 69 | + - repo: https://github.com/crate-ci/typos |
| 70 | + rev: "v1.44.0" |
| 71 | + hooks: |
| 72 | + - id: typos |
| 73 | + exclude: ^Gemfile\.lock$ |
| 74 | + |
| 75 | + - repo: local |
| 76 | + hooks: |
| 77 | + - id: disallow-caps |
| 78 | + name: Disallow improper capitalization |
| 79 | + language: pygrep |
| 80 | + entry: PyBind|Numpy|Cmake|CCache|Github|PyTest|RST|PyLint |
| 81 | + exclude: (.pre-commit-config.yaml|docs/pages/guides/style\.md)$ |
| 82 | + - id: disallow-words |
| 83 | + name: Disallow certain words |
| 84 | + language: pygrep |
| 85 | + entry: "[Ff]alsey" |
| 86 | + exclude: .pre-commit-config.yaml$ |
| 87 | + - id: disallow-bad-permalinks |
| 88 | + name: Disallow _ in permalinks |
| 89 | + language: pygrep |
| 90 | + entry: "^permalink:.*_.*" |
| 91 | + - id: cog |
| 92 | + name: Cog the pages |
| 93 | + language: python |
| 94 | + entry: cog -P -r -I ./helpers |
| 95 | + files: "^docs/pages/guides/(packaging_compiled|docs|tasks|gha_basic).md|^copier.yml|^docs/_includes/pyproject.md" |
| 96 | + additional_dependencies: [cogapp, cookiecutter, tomlkit] |
0 commit comments