Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ruff to 0.9 (2025 formatting style) #2458

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Jan 12, 2025

Mainly changes which part of an assert is optionally parenthesised to make the condition more readable.
Formatting bugfix: adds a space around multiplication op in f-strings (f"{1 * 2}")

@Avasam Avasam force-pushed the Update-Ruff-to-0.9 branch from 4b68270 to 4704d56 Compare February 8, 2025 18:48
Avasam added a commit to Avasam/skeleton that referenced this pull request Feb 8, 2025
Ensure modern type annotation syntax and best practices
Not including those covered by type-checkers or exclusive to Python 3.11+

Not including rules currently in preview either.

These are the same set of rules I have in pywin32 as of mhammond/pywin32#2458

setuptools has all the same rules enabled (except it also includes the `UP` group directly)
jaraco added a commit to jaraco/skeleton that referenced this pull request Feb 25, 2025
* Select Ruff rules for modern type annotations

Ensure modern type annotation syntax and best practices
Not including those covered by type-checkers or exclusive to Python 3.11+

Not including rules currently in preview either.

These are the same set of rules I have in pywin32 as of mhammond/pywin32#2458

setuptools has all the same rules enabled (except it also includes the `UP` group directly)

* Add PYI011 ignore and #local section

* Update ruff.toml

Co-authored-by: Jason R. Coombs <[email protected]>

* Add 	# upstream

---------

Co-authored-by: Jason R. Coombs <[email protected]>
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.

1 participant