Skip to content

fix: resolve ruff violations blocking CI (I001, F401, E501, E702, F841) - #124

Merged
Radiationsafety merged 1 commit into
mainfrom
fix/ruff-ci-lint
Sep 17, 2026
Merged

Radiationsafety merged 1 commit into
mainfrom
fix/ruff-ci-lint

Conversation

@Radiationsafety

Copy link
Copy Markdown
Owner
  • core/init.py, core/detector.py: sort import blocks (I001)
  • core/_gnowee.py: drop unused imports (copy, dataclasses.field), wrap overlong lines, remove unused locals (worst, fe, fl) (F401/E501/F841)
  • core/unfold_gnowee.py: wrap overlong def line (E501)
  • core/unfold_qpmad.py: drop unused cho_factor/cho_solve imports, split semicolon statements, wrap long logger lines (F401/E702/E501)
  • tests/test_coverage.py: wrap parametrize list (E501)
  • tests/test_gnowee.py: drop unused Parent import (F401)

Verified: ruff check clean; test_gnowee (28), test_nnqp_qpmad (32), coverage zero-above-emax (8) all pass.

- core/__init__.py, core/detector.py: sort import blocks (I001)
- core/_gnowee.py: drop unused imports (copy, dataclasses.field),
  wrap overlong lines, remove unused locals (worst, fe, fl) (F401/E501/F841)
- core/unfold_gnowee.py: wrap overlong def line (E501)
- core/unfold_qpmad.py: drop unused cho_factor/cho_solve imports,
  split semicolon statements, wrap long logger lines (F401/E702/E501)
- tests/test_coverage.py: wrap parametrize list (E501)
- tests/test_gnowee.py: drop unused Parent import (F401)

Verified: ruff check clean; test_gnowee (28), test_nnqp_qpmad (32),
coverage zero-above-emax (8) all pass.
@netlify

netlify Bot commented Sep 17, 2026

Copy link
Copy Markdown

Deploy Preview for bssunfold ready!

Name Link
🔨 Latest commit cd609ad
🔍 Latest deploy log https://app.netlify.com/projects/bssunfold/deploys/6aac2f7d629952000807e6d7
😎 Deploy Preview https://deploy-preview-124--bssunfold.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@Radiationsafety
Radiationsafety merged commit 782b97e into main Sep 17, 2026
23 of 26 checks passed
@codacy-production

codacy-production Bot commented Sep 17, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage 84.21% diff coverage · -0.02% coverage variation

Metric Results
Coverage variation -0.02% coverage variation (-1.00%)
Diff coverage 84.21% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (3ab427f) 12931 12183 94.22%
Head commit (cd609ad) 12932 (+1) 12182 (-1) 94.20% (-0.02%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#124) 19 16 84.21%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant