From 40fd52dde0ddf0b95a3433163f51560b4827ab75 Mon Sep 17 00:00:00 2001 From: Brent Westbrook <36778786+ntBre@users.noreply.github.com> Date: Fri, 9 May 2025 16:59:00 -0400 Subject: [PATCH] Exclude broken symlinks from `meson-python` ecosystem check (#17993) Summary -- This should resolve the formatter ecosystem errors we've been seeing lately. https://github.com/mesonbuild/meson-python/pull/728 added the links, which I think are intentionally broken for testing purposes. Test Plan -- Ecosystem check on this PR --- python/ruff-ecosystem/ruff_ecosystem/defaults.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/ruff-ecosystem/ruff_ecosystem/defaults.py b/python/ruff-ecosystem/ruff_ecosystem/defaults.py index 1fd66f4afd..3c07c571ee 100644 --- a/python/ruff-ecosystem/ruff_ecosystem/defaults.py +++ b/python/ruff-ecosystem/ruff_ecosystem/defaults.py @@ -4,6 +4,7 @@ Default projects for ecosystem checks from ruff_ecosystem.projects import ( CheckOptions, + FormatOptions, Project, Repository, ) @@ -134,7 +135,12 @@ DEFAULT_TARGETS = [ Project(repo=Repository(owner="wntrblm", name="nox", ref="main")), Project(repo=Repository(owner="pytest-dev", name="pytest", ref="main")), Project(repo=Repository(owner="encode", name="httpx", ref="master")), - Project(repo=Repository(owner="mesonbuild", name="meson-python", ref="main")), + Project( + repo=Repository(owner="mesonbuild", name="meson-python", ref="main"), + format_options=FormatOptions( + exclude="tests/packages/symlinks/baz.py,tests/packages/symlinks/qux.py" + ), + ), Project(repo=Repository(owner="pdm-project", name="pdm", ref="main")), Project(repo=Repository(owner="astropy", name="astropy", ref="main")), ]