You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BigQuery: Run lint and black on samples/ directory #9081
We should make sure our code samples are linted, too.
I think we'll get a few flake8 errors for unused imports. Since we always want to show from google.cloud import bigquery, we can make those lines into comments when they are otherwise unnecessary.
Also, I forget if we use the templated files for noxfile.py. This update may need to be made at the synthtool templates repo if so.
Activity
plamut commentedon Sep 17, 2019
It appears that snippets are already linted. Black already runs on them, while the flake8 check needs to be extended to the
docs/samplesdirectory:Noxfiles are auto-generated AFAIK, yes, thus the change needs to be made in the synthool repo (or wherever the files are generated).
tswast commentedon Sep 23, 2019
FYI: the
noxfile.pytemplate lives here: https://github.com/googleapis/synthtool/blob/master/synthtool/gcp/templates/python_library/noxfile.py.j2