Baselines would allow developers to introduce Ruff to their codebase incrementally by ignoring existing errors and address them as they reappear when making changes to the code.
Supported by some tools in the flake8 ecosystem:
A very basic proposal for this in ruff:
In the CLI
ruff . --exit-zero --format baseline > .ruff_baseline
ruff . --baseline .ruff_baseline # doesn't report any errors
In pyproject.toml
[tool.ruff]
baseline = ".ruff_baseline"
Baselines would allow developers to introduce Ruff to their codebase incrementally by ignoring existing errors and address them as they reappear when making changes to the code.
Supported by some tools in the flake8 ecosystem:
A very basic proposal for this in ruff:
In the CLI
In pyproject.toml