← Back to issue list

style: fix ruff PTH211 errors

View original Github issue

Metadata

Project
craft-parts
Number
#1288
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged as commit 13382674: PR #1288 fixed Ruff 0.13 PTH211 errors across eight files (+29/-30), with all CI checks passing.

Resolution: closed resolved

Reason: PR #1288 was merged as commit 13382674, updating eight files to resolve the Ruff 0.13 PTH211 lint errors. All CI checks passed.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you followed the guidelines for contributing? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `make lint && make test`? - [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)? --- Ruff 0.13 adds PTH211 as a lint rule. This fixes those.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged as commit 13382674: PR #1288 fixed Ruff 0.13 PTH211 errors across eight files (+29/-30), with all CI checks passing.
stealth/space-bunny-alpha — closed resolved Merged PR #1288 as commit 13382674, fixing Ruff 0.13 PTH211 lint errors across eight files; all CI checks passed.
stealth/space-bunny-alpha — closed resolved Merged into the default branch with two approvals and all CI checks passing; updated eight files (+29/-30) to fix Ruff 0.13 PTH211 errors.
qwen/qwen3.6-35b-a3b — — Merged to resolve Ruff 0.13 PTH211 lint violations. Approved by two reviewers with all CI checks passing. Updated eight files to correct style errors.
qwen3.6-35b-a3b-mtp-q6 — — Merged to fix Ruff 0.13 PTH211 linting errors. The changes update path-handling calls to comply with Ruff 0.13's new style rules, resolving all reported violations.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1287 style: fix ruff issues with ruff 0.13 craft-parts closed Ruff 0.13 lint-fix PR #1287 was closed unmerged after lint and test jobs failed; the PTH211 fixes landed separately via merged PR #1288 (commit 13382674).
87%
#20 style: fix ruff issue craft-platforms merged Merged PR #20 fixed a Ruff linting issue in one file (+1/-3); resolution is commit 71a165d.
83%
#415 style: fix ruff 0.16 warning craft-store merged Merged PR #415 as commit b24d684, adding a directive to ignore Ruff 0.16's new warning; all CI checks passed.
82%
#1465 style: fix linting issues for newer ruff craft-parts merged Merged #1465 as a58695ef, fixing five files (+13/-6) for compatibility with newer Ruff; all CI checks passed.
81%
#173 style: fix lint for ruff 0.12 craft-archives merged Merged PR #173 as commit 53d732e, fixing lint for Ruff 0.12 while retaining Ruff 0.11 compatibility; all CI checks passed.
81%
#1156 style: fix linting errors for ruff 0.12.0 craft-parts merged Ruff 0.12.0 lint fixes merged as PR #1156 (commit eb82b792), correcting style violations in 5 files (+9/-12) after the ruff-pre-commit v0.12.0 bump in #407; all CI checks passed.
80%
#1323 style: fix new ruff warnings rockcraft merged PR #1323 merged to main: hand-fixed minor new Ruff warnings in 3 files (+30/-20). Lint and all test suites passed; only source-spread-tests failed (unrelated to style change).
79%
#1737 style: fix linting for ruff 0.5 charmcraft merged Merged PR #1737 as commit 8994523e, updating one file (+2/-6) to fix linting under Ruff 0.5.
79%
#803 style: fix linting issues with ruff 0.12 craft-application merged Merged via commit 5e15ff09, fixing Ruff 0.12 lint failures across 14 files. A separate integration-test failure was fixed by #804.
78%
#357 style: fix lints from ruff 0.12 craft-cli merged Merged as dd635c9, fixing new Ruff 0.12 lint errors across seven files (+11/-10); all CI checks passed.
78%