Skip to content

Modernize to python 3.9 using flynt and pyupgrade#2710

Merged
cbentejac merged 4 commits intodevelopfrom
dev/fstring
May 2, 2025
Merged

Modernize to python 3.9 using flynt and pyupgrade#2710
cbentejac merged 4 commits intodevelopfrom
dev/fstring

Conversation

@fabiencastan
Copy link
Copy Markdown
Member

No description provided.

@fabiencastan fabiencastan added this to the Meshroom 2025.1.0 milestone Apr 14, 2025
@fabiencastan fabiencastan requested a review from Copilot April 14, 2025 12:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 35 out of 35 changed files in this pull request and generated no comments.

@fabiencastan fabiencastan changed the title Apply flynt to use f-strings Modernize to python 3.9 using flynt and pyupgrade Apr 14, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 43.70370% with 76 lines in your changes missing coverage. Please review.

Project coverage is 76.75%. Comparing base (37a6d9e) to head (6764862).
Report is 5 commits behind head on develop.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
meshroom/core/graph.py 44.00% 14 Missing ⚠️
meshroom/core/stats.py 6.66% 14 Missing ⚠️
meshroom/core/attribute.py 53.57% 13 Missing ⚠️
meshroom/core/node.py 54.54% 10 Missing ⚠️
meshroom/core/__init__.py 28.57% 5 Missing ⚠️
meshroom/common/PySignal.py 50.00% 4 Missing ⚠️
meshroom/core/cgroup.py 0.00% 4 Missing ⚠️
meshroom/common/qt.py 57.14% 3 Missing ⚠️
meshroom/core/desc/node.py 0.00% 3 Missing ⚠️
meshroom/nodes/general/Publish.py 0.00% 3 Missing ⚠️
... and 3 more
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2710   +/-   ##
========================================
  Coverage    76.75%   76.75%           
========================================
  Files           40       40           
  Lines         6082     6083    +1     
========================================
+ Hits          4668     4669    +1     
  Misses        1414     1414           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fabiencastan fabiencastan requested a review from Copilot April 30, 2025 22:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modernizes parts of the Meshroom codebase to Python 3.9 by removing legacy coding comments, adopting f-string syntax, and streamlining super() calls. Key changes include the removal of “# coding:utf-8” headers, replacing all .format() style string formatting with f-strings, and simplifying superclass invocation.

Reviewed Changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated no comments.

Show a summary per file
File Description
meshroom/submitters/simpleFarmSubmitter.py Modernized constructor and logging statements with f-strings
meshroom/submitters/init.py Removed obsolete encoding header
meshroom/nodes/general/Publish.py Converted string formatting to f-strings in log messages
meshroom/multiview.py Updated exception message to use f-string
meshroom/core/test.py Updated print statements with f-strings
meshroom/core/taskManager.py Replaced legacy super() calls and string formatting
meshroom/core/submitter.py Used simplified super() call
meshroom/core/stats.py Converted logging formatting to f-strings and f-string formatting for paths
meshroom/core/nodeFactory.py Updated import modifications and type handling
meshroom/core/node.py Replaced deprecated WindowsError with OSError and modernized logging and super() usage
meshroom/core/graphIO.py Converted list/set construction and string formatting to f-strings
meshroom/core/graph.py Modernized overall string formatting, super() calls, and error messages
meshroom/core/exception.py Adopted f-string style for error messages
meshroom/core/desc/node.py Updated exception messages in chunk command execution
meshroom/core/cgroup.py Simplified file opening syntax
meshroom/core/attribute.py Modernized f-string usage in attribute methods and error messages
meshroom/core/init.py Removed legacy encoding header and modernized Version logic
meshroom/common/qt.py Updated QObjectListModel and QTypedObjectListModel to use f-strings and simplified super() calls
meshroom/common/core.py Switched to modern super() calls in CoreProperty/CoreObject
meshroom/common/PySignal.py Modernized signal string formatting using f-strings

@cbentejac cbentejac merged commit 3c1741b into develop May 2, 2025
4 of 5 checks passed
@cbentejac cbentejac deleted the dev/fstring branch May 2, 2025 10:56
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.

3 participants