You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new lint job in ci.yml (added in 1b53585) surfaces ruff debt that
predates this branch — the project's previous CI never ran ruff. Most of
it is mechanical: SIM* return-direct rewrites, C4* comprehension
simplifications, I001 import sorts, F401 unused imports, UP015/UP032
modernizations.
What was changed
----------------
- Auto-applied ruff --fix --unsafe-fixes (109 fixes). Reverted one
unsafe fix in src/pptx/opc/serialized.py (SIM401 wanted
blob_reader.get(uri, None), but _blob_reader is a Container, not a
Mapping — has no .get()). Added a noqa with explanation.
- Manually broke a long _GUID_RE line in tests/parts/test_custom_xml.py
to fit the 100-char limit (E501).
- pyproject.toml [tool.ruff.lint]:
* Renamed TCH001 -> TC001 (ruff renamed the rule).
* Removed PT005 from ignore list — ruff removed the rule.
Verified
--------
- ruff check src tests -> All checks passed
- pytest tests/ -> 2986 passed
- behave --stop -> 54 features, 981 scenarios, 0 failed
Out of scope
------------
- ruff format would reformat 48 files. The lint job has
'continue-on-error: true' on the format check, so that stays advisory
for now. A repo-wide format pass is a separate dedicated PR.
0 commit comments