Repository navigation
Enable pyupgrade (UP) ruleset in ruff config - #300
Conversation
|
A roadmap for this feature has been formed in issue #327 |
|
@JWock82 Thanks for the reference but I couldn't catch why this one is closed. Is there a decision against pyupgrade? |
|
I thought this was outdated, rather than still in progress. I'll reopen it. |
|
I was waiting for #299 to be merged and then I'll rebase it. |
52cb565 to
47ff8c5
Compare
|
Ready for review. |
There was a problem hiding this comment.
Very nice improvement 😌
There was a problem hiding this comment.
🟡 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 inruff.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.
47ff8c5 to
18f8ffd
Compare
Depends on:
Supersedes: