mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-03 13:23:10 +00:00
Reduce usage of ALL in ecosystem CI (#3590)
This commit is contained in:
parent
fa04861724
commit
16a350c731
1 changed files with 10 additions and 7 deletions
|
|
@ -29,7 +29,7 @@ class Repository(NamedTuple):
|
||||||
org: str
|
org: str
|
||||||
repo: str
|
repo: str
|
||||||
ref: str
|
ref: str
|
||||||
select: str = "ALL"
|
select: str = ""
|
||||||
ignore: str = ""
|
ignore: str = ""
|
||||||
exclude: str = ""
|
exclude: str = ""
|
||||||
|
|
||||||
|
|
@ -58,13 +58,14 @@ class Repository(NamedTuple):
|
||||||
|
|
||||||
|
|
||||||
REPOSITORIES = {
|
REPOSITORIES = {
|
||||||
"zulip": Repository("zulip", "zulip", "main"),
|
"airflow": Repository("apache", "airflow", "main", select="ALL"),
|
||||||
"bokeh": Repository("bokeh", "bokeh", "branch-3.2"),
|
"bokeh": Repository("bokeh", "bokeh", "branch-3.2", select="ALL"),
|
||||||
|
"cibuildwheel": Repository("pypa", "cibuildwheel", "main"),
|
||||||
|
"disnake": Repository("DisnakeDev", "disnake", "main"),
|
||||||
"scikit-build": Repository("scikit-build", "scikit-build", "main"),
|
"scikit-build": Repository("scikit-build", "scikit-build", "main"),
|
||||||
"scikit-build-core": Repository("scikit-build", "scikit-build-core", "main"),
|
"scikit-build-core": Repository("scikit-build", "scikit-build-core", "main"),
|
||||||
"cibuildwheel": Repository("pypa", "cibuildwheel", "main"),
|
|
||||||
"airflow": Repository("apache", "airflow", "main"),
|
|
||||||
"typeshed": Repository("python", "typeshed", "main", select="PYI"),
|
"typeshed": Repository("python", "typeshed", "main", select="PYI"),
|
||||||
|
"zulip": Repository("zulip", "zulip", "main", select="ALL"),
|
||||||
}
|
}
|
||||||
|
|
||||||
SUMMARY_LINE_RE = re.compile(r"^(Found \d+ error.*)|(.*potentially fixable with.*)$")
|
SUMMARY_LINE_RE = re.compile(r"^(Found \d+ error.*)|(.*potentially fixable with.*)$")
|
||||||
|
|
@ -78,12 +79,14 @@ async def check(
|
||||||
*,
|
*,
|
||||||
ruff: Path,
|
ruff: Path,
|
||||||
path: Path,
|
path: Path,
|
||||||
select: str,
|
select: str = "",
|
||||||
ignore: str = "",
|
ignore: str = "",
|
||||||
exclude: str = "",
|
exclude: str = "",
|
||||||
) -> "Sequence[str]":
|
) -> "Sequence[str]":
|
||||||
"""Run the given ruff binary against the specified path."""
|
"""Run the given ruff binary against the specified path."""
|
||||||
ruff_args = ["check", "--no-cache", "--exit-zero", "--select", select]
|
ruff_args = ["check", "--no-cache", "--exit-zero"]
|
||||||
|
if select:
|
||||||
|
ruff_args.extend(["--select", select])
|
||||||
if ignore:
|
if ignore:
|
||||||
ruff_args.extend(["--ignore", ignore])
|
ruff_args.extend(["--ignore", ignore])
|
||||||
if exclude:
|
if exclude:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue