blacken samples using templated noxfile #765
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
samples
Issues that are directly related to samples.
type: process
A process-related concern. May include testing, release, or the like.
This repository has three historical samples locations (see #790 for the issue to migrate them all to the most recent layout, supported by templates), but this issue only refers to the samples in (3). The samples in (1, 2) should remain blackened by the existing mechanism:
docs/snippets.py
samples/*.py
+samples/tests/*.py
samples/snippets/*.py
,samples/geography/*.py
,samples/magics/*.py
, and possibly more in the future, see: Clean-upsamples/snippets/requirements.txt
#1352.For this issue, I anticipate the following updates:
python-bigquery/noxfile.py
Line 28 in 34a3f5c
BLACK_PATHS = ("docs", "google", "samples/*.py", "samples/tests/*.py", "tests", "noxfile.py", "setup.py")
or similar.samples/snippets|geography|etc
stay blackened. We still want to runnox -s blacken
in the root directory but then we also want to runnox -s blacken
in each samples directory that has anoxfile.py
. See the implementation in python-bigquery-datatransfer for reference: https://github.com/googleapis/python-bigquery-datatransfer/blob/822223fc02b1e2ff6f52b834c51f4bf46924e2e8/owlbot.py#L60-L61The text was updated successfully, but these errors were encountered: