8000 Enable pyupgrade (UP) ruleset in ruff config by ulgens · Pull Request #300 · JWock82/Pynite · GitHub
[go: up one dir, main page]

Skip to content

Enable pyupgrade (UP) ruleset in ruff config - #300

Merged
JWock82 merged 2 commits into
JWock82:mainfrom
ulgens:ruff-pyupgrade
Sep 14, 2026
Merged

JWock82 merged 2 commits into
JWock82:mainfrom
ulgens:ruff-pyupgrade

Conversation

@ulgens
@ulgens ulgens commented Dec 17, 2025 •
Copy link
Copy Markdown
Contributor

@JWock82
JWock82 commented Aug 22, 2026
Copy link
Copy Markdown
Owner

A roadmap for this feature has been formed in issue #327

@JWock82 JWock82 closed this Aug 22, 2026
@ulgens
ulgens commented Aug 22, 2026
Copy link
Copy Markdown
Contributor Author

@JWock82 Thanks for the reference but I couldn't catch why this one is closed. Is there a decision against pyupgrade?

@JWock82
JWock82 commented Aug 22, 2026
Copy link
Copy Markdown
Owner

I thought this was outdated, rather than still in progress. I'll reopen it.

@JWock82 JWock82 reopened this Aug 22, 2026
@ulgens
ulgens commented Aug 22, 2026
Copy link
Copy Markdown
Contributor Author

I was waiting for #299 to be merged and then I'll rebase it.

@ulgens
ulgens commented Sep 14, 2026
Copy link
Copy Markdown
Contributor Author

Ready for review.

@ulgens
ulgens marked this pull request as ready for review September 14, 2026 05:50
@jonbiemond jonbiemond left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice improvement 😌

Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Enables Ruff’s full pyupgrade ruleset and modernizes Python syntax across the codebase.

Changes:

  • Enables "UP" rules in ruff.toml.
  • Replaces legacy typing syntax, class declarations, format calls, and encoding headers.
  • Updates annotations across core modules and supporting files.
File summaries
File Description
Testing/test_unstable_structure.py Updated as part of this pull request.
Testing/test_torsion.py Updated as part of this pull request.
Testing/test_TC_analysis.py Updated as part of this pull request.
Testing/test_support_settlement.py Updated as part of this pull request.
Testing/test_springs.py Updated as part of this pull request.
Testing/test_spring_support.py Updated as part of this pull request.
Testing/test_sloped_beam.py Updated as part of this pull request.
Testing/test_reporting.py Updated as part of this pull request.
Testing/test_reanalysis.py Updated as part of this pull request.
Testing/test_reactions.py Updated as part of this pull request.
Testing/test_plates&quads.py Updated as part of this pull request.
Testing/test_loads.py Updated as part of this pull request.
Testing/test_end_releases.py Updated as part of this pull request.
Testing/test_2D_frames.py Updated as part of this pull request.
ruff.toml Updated as part of this pull request.
Pynite/VTKWriter.py Updated as part of this pull request.
Pynite/Visualization.py Updated as part of this pull request.
Pynite/Tri3D.py Updated as part of this pull request.
Pynite/Spring3D.py Updated as part of this pull request.
Pynite/ShearWall.py Updated as part of this pull request.
Pynite/Section.py Updated as part of this pull request.
Pynite/Rendering.py Updated as part of this pull request.
Pynite/Quad3D.py Updated as part of this pull request.
Pynite/Plate3D.py Updated as part of this pull request.
Pynite/PhysMember.py Updated as part of this pull request.
Pynite/Node3D.py Updated as part of this pull request.
Pynite/Mesh.py Updated as part of this pull request.
Pynite/Member3D.py Updated as part of this pull request.
Pynite/Material.py Updated as part of this pull request.
Pynite/LoadCombo.py Updated as part of this pull request.
Pynite/FixedEndReactions.py Updated as part of this pull request.
Pynite/FEModel3D.py Updated as part of this pull request.
Pynite/BeamSegZ.py Updated as part of this pull request.
Pynite/Analysis.py Updated as part of this pull request.
Examples/Beam on Elastic Foundation.py Updated as part of this pull request.
Archived/MITC4.py Updated as part of this pull request.
Review details
  • Files reviewed: 36/36 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread ruff.toml Resolved
Comment thread ruff.toml Resolved
@JWock82
JWock82 merged commit 2bee7e4 into JWock82:main Sep 14, 2026
3 checks passed
@ulgens
ulgens deleted the ruff-pyupgrade branch September 14, 2026 22:05
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.

4 participants

0