-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat: pyupgrade via pre-commit #4758
Conversation
40b0d0e
to
96c84bb
Compare
hooks: | ||
- id: pyupgrade | ||
args: [--py36-plus] | ||
exclude: '^(install|get)-poetry.py$' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These files are excluded as get-poetry.py
is in maintenance mode and install-poetry.py
is vendored from a different repo.
96c84bb
to
ef606ea
Compare
5ebe951
to
c0ce325
Compare
3bbe461
to
bfafac7
Compare
bfafac7
to
d72e08b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Run pyupgrade against the whole codebase, as well as add a pyupgrade pre-commit hook to prevent obsolete syntax/imports in the future.