HyukjinKwon opened a new pull request, #600:
URL: https://github.com/apache/spark-connect-rust/pull/600
### What changes were proposed in this pull request?
This PR sets `force-exclude = true` in `[tool.ruff]` of `pyproject.toml`, so
that ruff applies its excludes to the paths given on its command line too.
### Why are the changes needed?
Without it, a path given to ruff explicitly is linted even when
`[tool.ruff]` excludes it. For example, `ruff check
python/pyspark/cloudpickle/cloudpickle.py`, or an editor integration that runs
ruff on the open file, reports 5 errors (and `ruff format --check` one file to
reformat) in a vendored file that the drift gate keeps byte-identical to Apache
Spark. With the setting, such a path is skipped ("No Python files found under
the given path(s)"), as it is in `ruff check` of the whole tree.
### Does this PR introduce _any_ user-facing change?
No. It only changes developer tooling.
### How was this patch tested?
- `[email protected] check` and `format --check` on that vendored file: 5 errors
and 1 file to reformat before; skipped after.
- CI's gates, which run ruff without paths, are unchanged: `ruff check`
passes, `ruff format --check` reports 40 files formatted (40 without this
change too), and `python/tests/test_ruff_excludes.py` passes.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 5.5
This pull request and its description were written by Isaac.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]