mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
82d9947901
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
18 lines
551 B
YAML
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
|