Skip to content

Add pyupgrade#831

Merged
spoorcc merged 3 commits intomainfrom
spoorcc/issue828
Oct 17, 2025
Merged

Add pyupgrade#831
spoorcc merged 3 commits intomainfrom
spoorcc/issue828

Conversation

@spoorcc
Copy link
Copy Markdown
Contributor

@spoorcc spoorcc commented Oct 17, 2025

Description by Korbit AI

What change is being made?

Add and enforce pyupgrade across the codebase by introducing a new pre-commit hook, updating CI to run pyupgrade, and modernizing type hints and minor syntax to align with Python 3.9+ standards.

Why are these changes being made?

To automatically modernize Python syntax and typings, keep the codebase aligned with current language features, and ensure code quality via CI and pre-commit checks. If applicable, this also reduces manual churn by applying consistent, up-to-date conventions.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Copy link
Copy Markdown

@korbit-ai korbit-ai Bot left a comment

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Design Reporter registration violates Open-Closed Principle ▹ view
Files scanned
File Path Reviewed
dfetch/reporting/init.py
dfetch/resources/init.py
dfetch/reporting/reporter.py
dfetch/reporting/stdout_reporter.py
dfetch/main.py
dfetch/commands/common.py
dfetch/manifest/remote.py
dfetch/commands/command.py
dfetch/util/cmdline.py
dfetch/commands/freeze.py
dfetch/reporting/check/jenkins_reporter.py
dfetch/util/purl.py
dfetch/commands/report.py
dfetch/util/versions.py
dfetch/util/util.py
dfetch/project/git.py
dfetch/reporting/check/code_climate_reporter.py
dfetch/project/metadata.py
dfetch/commands/check.py
dfetch/commands/diff.py
dfetch/commands/update.py
dfetch/reporting/check/sarif_reporter.py
dfetch/reporting/check/reporter.py
dfetch/reporting/sbom_reporter.py
dfetch/commands/import_.py
dfetch/project/vcs.py
dfetch/manifest/project.py
dfetch/project/svn.py
dfetch/manifest/manifest.py
dfetch/vcs/git.py

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

Comment thread dfetch/reporting/__init__.py
@spoorcc spoorcc linked an issue Oct 17, 2025 that may be closed by this pull request
@spoorcc spoorcc merged commit 630ab56 into main Oct 17, 2025
39 checks passed
@spoorcc spoorcc deleted the spoorcc/issue828 branch October 17, 2025 19:20
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.

Integrate pyupgrade

1 participant