Add Black. Template noxfile + flake8.#6642
Conversation
crwilcox
commented
Nov 22, 2018
- Add Templating support to existing synth.py
- Refactor Synth scripts to have similar style
- Add black target and coverage to all synth.py
|
Cool! A bit difficult to review, though. Which files are the hand-edited ones? |
|
:) I tried to make it not too bad. the hand edited files are synth.py. There is some other hand-editing to mirror generation.
|
|
I should also note, some lint may fail right now. I am waiting until people have reviewed this to actually blacken (to avoid random noise in review) |
asset/synth.py
Outdated
| # ---------------------------------------------------------------------------- | ||
| # Add templated files | ||
| # ---------------------------------------------------------------------------- | ||
| templated_files = gcp.CommonTemplates().py_library(unit_cov_level=86, cov_level=85) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| # Ignore abstract methods | ||
| raise NotImplementedError | ||
| omit = | ||
| */gapic/*.py |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| @@ -1,4 +1,5 @@ | |||
| [flake8] | |||
| ignore = E203, E266, E501, W503 | |||
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.