ruff/python/ruff-ecosystem/ruff_ecosystem
Brent Westbrook 67602512b6
Recognize SyntaxError: as an error code for ecosystem checks (#16879)
Summary
--

This updates the regex in `ruff-ecosystem` to catch syntax errors in an
effort to prevent bugs like #16874. This should catch `ParseError`s,
`UnsupportedSyntaxError`s, and the upcoming `SemanticSyntaxError`s.

Test Plan
--

I ran the ecosystem check locally comparing v0.11.0 and v0.11.1 and saw
a large number (2757!) of new syntax errors. I also manually tested the
regex on a few lines before that.

If we merge this before #16878, I'd expect to see that number decrease
substantially in that PR too, as another test.
2025-03-20 17:25:40 -04:00
..
__init__.py Rewrite ecosystem checks and add ruff format reports (#8223) 2023-10-27 17:28:01 -05:00
__main__.py Rewrite ecosystem checks and add ruff format reports (#8223) 2023-10-27 17:28:01 -05:00
check.py Recognize SyntaxError: as an error code for ecosystem checks (#16879) 2025-03-20 17:25:40 -04:00
cli.py Add support for ruff-ecosystem format comparisons with black (#8419) 2023-11-02 01:29:25 +00:00
defaults.py Ignore notebook with syntax error in ecosystem (#15604) 2025-01-20 04:53:22 +00:00
format.py Allow config-file overrides in ecosystem checks (#9286) 2023-12-28 10:44:50 -06:00
main.py Allow config-file overrides in ecosystem checks (#9286) 2023-12-28 10:44:50 -06:00
markdown.py Fix up some types in the ecosystem code (#8898) 2023-11-30 16:02:20 -06:00
projects.py Don't fix in ecosystem check (#15267) 2025-01-06 10:21:34 +01:00
types.py Fix ecosystem format line changed counts (#9158) 2023-12-16 00:14:17 -06:00