fail_fast: false exclude: | (?x)^( crates/red_knot_vendored/vendor/.*| crates/red_knot_workspace/resources/.*| crates/ruff_linter/resources/.*| crates/ruff_linter/src/rules/.*/snapshots/.*| crates/ruff_notebook/resources/.*| crates/ruff_server/resources/.*| crates/ruff/resources/.*| crates/ruff_python_formatter/resources/.*| crates/ruff_python_formatter/tests/snapshots/.*| crates/ruff_python_resolver/resources/.*| crates/ruff_python_resolver/tests/snapshots/.* )$ repos: - repo: https://github.com/abravalheri/validate-pyproject rev: v0.22 hooks: - id: validate-pyproject - repo: https://github.com/executablebooks/mdformat rev: 0.7.18 hooks: - id: mdformat additional_dependencies: - mdformat-mkdocs - mdformat-admon - mdformat-footnote exclude: | (?x)^( docs/formatter/black\.md | docs/\w+\.md )$ - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.42.0 hooks: - id: markdownlint-fix exclude: | (?x)^( docs/formatter/black\.md | docs/\w+\.md )$ - repo: https://github.com/adamchainz/blacken-docs rev: 1.19.1 hooks: - id: blacken-docs args: ["--pyi", "--line-length", "130"] files: '^crates/.*/resources/mdtest/.*\.md' exclude: | (?x)^( .*?invalid(_.+)_syntax.md )$ additional_dependencies: - black==24.10.0 - repo: https://github.com/crate-ci/typos rev: v1.27.0 hooks: - id: typos - repo: local hooks: - id: cargo-fmt name: cargo fmt entry: cargo fmt -- language: system types: [rust] pass_filenames: false # This makes it a lot faster - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.7.2 hooks: - id: ruff-format - id: ruff args: [--fix, --exit-non-zero-on-fix] types_or: [python, pyi] require_serial: true # Prettier - repo: https://github.com/rbubley/mirrors-prettier rev: v3.3.3 hooks: - id: prettier types: [yaml] ci: skip: [cargo-fmt, dev-generate-all]