mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Allow config-file overrides in ecosystem checks (#9286)
Adds the ability to override `ruff.toml` or `pyproject.toml` settings per-project during ecosystem checks. Exploring this as a fix for the `setuptools` project error. Also useful for including Jupyter Notebooks in the ecosystem checks, see #9293 Note the remaining `sphinx` project error is resolved in #9294
This commit is contained in:
parent
f8fc309855
commit
57b6a8cedd
6 changed files with 210 additions and 60 deletions
|
@ -113,11 +113,17 @@ async def clone_and_compare(
|
|||
|
||||
match command:
|
||||
case RuffCommand.check:
|
||||
compare, options, kwargs = (compare_check, target.check_options, {})
|
||||
compare, options, overrides, kwargs = (
|
||||
compare_check,
|
||||
target.check_options,
|
||||
target.config_overrides,
|
||||
{},
|
||||
)
|
||||
case RuffCommand.format:
|
||||
compare, options, kwargs = (
|
||||
compare, options, overrides, kwargs = (
|
||||
compare_format,
|
||||
target.format_options,
|
||||
target.config_overrides,
|
||||
{"format_comparison": format_comparison},
|
||||
)
|
||||
case _:
|
||||
|
@ -131,6 +137,7 @@ async def clone_and_compare(
|
|||
baseline_executable,
|
||||
comparison_executable,
|
||||
options,
|
||||
overrides,
|
||||
cloned_repo,
|
||||
**kwargs,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue