repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: # - id: check-yaml - id: check-json - id: check-toml - id: check-xml - id: check-ast - id: check-added-large-files args: [--enforce-all] - id: name-tests-test - id: detect-private-key - id: check-case-conflict - id: check-symlinks - id: check-docstring-first - id: pretty-format-json exclude: ipynb$ args: [--autofix, --no-sort-keys, --no-ensure-ascii] - id: check-merge-conflict - id: no-commit-to-branch args: [--branch, main] - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.14.10 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black rev: 25.12.0 hooks: - id: black args: [--config=pyproject.toml] - id: black-jupyter args: [--config=pyproject.toml] - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks rev: v2.16.0 hooks: - id: pretty-format-ini args: [--autofix] - id: pretty-format-yaml args: [--autofix] - id: pretty-format-toml args: [--autofix] exclude: (^poetry.lock$) - repo: https://github.com/frnmst/md-toc rev: 9.0.0 hooks: - id: md-toc - repo: https://github.com/Lucas-C/pre-commit-hooks-java rev: 1.3.10 hooks: - id: validate-html - repo: https://github.com/MarcoGorelli/auto-walrus rev: 0.3.4 hooks: - id: auto-walrus - repo: https://github.com/pre-commit/mirrors-prettier rev: v4.0.0-alpha.8 hooks: - id: prettier types_or: [css, javascript] - repo: https://github.com/executablebooks/mdformat rev: 1.0.0 # Check for the latest version hooks: - id: mdformat # Important: The GFM plugin is required for table support additional_dependencies: - mdformat-gfm - repo: https://github.com/python-jsonschema/check-jsonschema rev: 0.36.0 hooks: - id: check-jsonschema name: Check Gitea Workflows files: ^\.gitea/workflows/[^/]+$ types: [yaml] args: [--builtin-schema, vendor.github-workflows] - id: check-renovate - id: check-compose-spec - id: check-dependabot # the following hooks should always be at the end fo the file since they may add to what other hooks do - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: end-of-file-fixer exclude: (.txt$|.ipynb$|README.md$|readme.mde$) - id: trailing-whitespace exclude: (.txt$|README.md$) - id: mixed-line-ending args: [--fix=lf]