style(ruff): enable `pyupgrade` (`UP`) rules and fix them all by noirbizarre · Pull Request #889 · commitizen-tools/commitizen · GitHub
Skip to content

style(ruff): enable pyupgrade (UP) rules and fix them all - #889

Merged
Lee-W merged 1 commit into
commitizen-tools:masterfrom
noirbizarre:style/pyupgrade
Oct 17, 2023
Merged

style(ruff): enable pyupgrade (UP) rules and fix them all#889
Lee-W merged 1 commit into
commitizen-tools:masterfrom
noirbizarre:style/pyupgrade

Conversation

@noirbizarre

Copy link
Copy Markdown
Member

Description

Enable pyupgrade rules in ruff to automatically update syntax according to supported Python version.
Then apply it on all the repository.

Checklist

  • Add test cases to all the changes you introduce (N/A)
  • Run ./scripts/format and ./scripts/test locally to ensure this change passes linter check and test
  • Test the changes on the local machine manually
  • Update the documentation for the changes (N/A)

Expected behavior

No changes

Additional context

@codecov

codecov Bot commented Oct 16, 2023

Copy link
Copy Markdown

@Lee-W Lee-W added pr-status: ready-to-merge almost ready to merge. just keep it for a few days for others to check and removed pr-status: wait-for-review labels Oct 17, 2023
@Lee-W
Lee-W merged commit a48d263 into commitizen-tools:master Oct 17, 2023
@noirbizarre
noirbizarre deleted the style/pyupgrade branch October 17, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-status: ready-to-merge almost ready to merge. just keep it for a few days for others to check scope: pre-commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants