-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add code lint (flake8, black, and pytype) #17
Conversation
…lity is supported from 3.7 though.
@@ -4,19 +4,27 @@ | |||
# Created on: 2022-12-6 | |||
# Author: Vladimir Petrik <[email protected]> | |||
# | |||
from __future__ import annotations |
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.
Just curious, how are the annotations used? I did not see in the code
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.
It allows using str | None
for type annotation instead of Optional[str]. It's supported from python 3.10, __future __ import is needed for backporting this future to python 3.7.
This PR adds two static code checkers into the repository: flake8, black, and pytype. The code is updated to fit the requirements of both.