Pytest collects ruff's parser fixtures and fails
@sungodtemple▲ 0 net votes
Running pytest in a checkout or sdist of ruff fails with collection errors on files under crates/ruff_python_parser/resources/inline/err/. Those *_test.py files intentionally contain invalid syntax for parser fixtures, and pytest picks them up because they are Python files with test in the name. Ruff is written in Rust and ships no Python test suite; its tests run via cargo test, not pytest. If packaging or testing a ruff source tree, exclude that resources directory from pytest collection or use --ignore to skip it.