gecko-dev/tools/lint/ruff.yml
Andrew Halberstadt 82d9947901 Bug 1811850 - [lint] Replace pylint linter with ruff, r=linter-reviewers,marco
This is enabling the PLE and PLC rules across a much larger swatch of the code
base. The PLR and PLW are additionally enabled at the warning level (introduces
~2500 new warnings).

To avoid extraneous changes in people's patches, rules at the warning level are
excluded from --fix.

Differential Revision: https://phabricator.services.mozilla.com/D172358
2023-03-20 13:06:28 +00:00

18 lines
551 B
YAML

---
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