-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
STYLE add future annotations where possible #47769
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
MarcoGorelli
commented
Jul 17, 2022
- closes STYLE add check for future annotations #41901 (Replace xxxx with the Github issue number)
- All code checks passed.
- repo: local | ||
hooks: |
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.
not relevant to this PR, but there's no need to keep repeating repo: local
, so removing these extra ones while I'm here
name: import annotations from __future__ | ||
entry: 'from __future__ import annotations' | ||
language: pygrep | ||
args: [--negate] |
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.
negate
checks that the pattern in entry
is always present (as opposed to checking it's absent)
5153a39
to
826716f
Compare
826716f
to
c1182ef
Compare
Thanks @MarcoGorelli |