summaryrefslogtreecommitdiffstats
path: root/tools/lint/ruff.yml
blob: 59ae2a13500b4e6875ef721e5a0eadf5daebcd3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
ruff:
    description: An extremely fast Python linter, written in Rust
    # Excludes should be added to topsrcdir/pyproject.toml
    exclude: []
    # The configure option is used by the build system
    extensions: ["configure", "py"]
    support-files:
        - "**/.ruff.toml"
        - "**/ruff.toml"
        - "**/pyproject.toml"
        - "tools/lint/python/ruff.py"
    # Rules that should result in warnings rather than errors.
    warning-rules: [PLR, PLW]
    type: external
    payload: python.ruff:lint
    setup: python.ruff:setup