-
Notifications
You must be signed in to change notification settings - Fork 9
Add lint for scripts and fix all issues #61
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
Makefile
Outdated
|
||
.PHONY: flake8-scripts | ||
flake8-scripts: build-scripts | ||
docker run --entrypoint=sh "$(get_famous_people_list)" -c "pip -qqq install flake8 && flake8 *.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.
With -qqq, is it advisable to silence critical level logging warnings?
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.
That should be fine. pip install
is not expected to fail and if it does, the entire command will fail (due to the &&
) so we know what to look into. Having low verbosity definitely is nicer in the CI run since otherwise the pip logs just drown out the lint messages.
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.
Reduced to -qq
since that's also still non-verbose in 9274c8b. Thanks for the pointer.
@@ -0,0 +1,36 @@ | |||
from processor import normalize_images |
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.
Should we add typing to these files?
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.
Done in db89e46.
Also: move datafiles in
common
to blob storage.