-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Bump ruff target-version to 3.10 and lint generate.py #16658
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
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
💥 What does this PR do?
This PR updates the
target-versionfor ruff linting/formatting to Python 3.10, since that is now the minimum supported version.It also removes the exclusion of
generate.pyfrom linting and fixes docstrings and import ordering in that file so no violations exist.🔄 Types of changes
PR Type
Enhancement
Description
Bump ruff target-version from Python 3.9 to 3.10
Remove
generate.pyfrom ruff exclusion listFix docstring formatting to comply with ruff standards
Reorganize imports in alphabetical order per ruff rules
Diagram Walkthrough
File Walkthrough
generate.py
Fix docstrings and import ordering for ruff compliancepy/generate.py
(stdlib, third-party)
single-line format where appropriate
backticks in code references
ltoline) and removed commented-outcode
pyproject.toml
Update ruff configuration for Python 3.10py/pyproject.toml
generate.pyfrom ruff's exclude listpy39topy310