mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
This PR introduces a new `crates` directory and moves all "product" crates into that folder. Part of #2059.
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
repos:
|
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
rev: v0.10.1
|
|
hooks:
|
|
- id: validate-pyproject
|
|
|
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
rev: v0.33.0
|
|
hooks:
|
|
- id: markdownlint-fix
|
|
args:
|
|
- --disable
|
|
- MD013 # line-length
|
|
- MD033 # no-inline-html
|
|
- --
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: cargo-fmt
|
|
name: cargo fmt
|
|
entry: cargo fmt --
|
|
language: rust
|
|
types: [rust]
|
|
- id: clippy
|
|
name: clippy
|
|
entry: cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
language: rust
|
|
pass_filenames: false
|
|
- id: ruff
|
|
name: ruff
|
|
entry: cargo run -- --no-cache --fix
|
|
language: rust
|
|
types_or: [python, pyi]
|
|
require_serial: true
|
|
exclude: ^crates/ruff/resources
|
|
- id: dev-generate-all
|
|
name: dev-generate-all
|
|
entry: cargo dev generate-all
|
|
language: rust
|
|
pass_filenames: false
|
|
exclude: target
|
|
|
|
ci:
|
|
skip: [cargo-fmt, clippy, dev-generate-all]
|