@@ -22,7 +22,7 @@ This section covers guidelines for Python samples. Note that
2222
2323### Folder Location
2424
25- Samples that primarily show the use of one client library should be placed in the
25+ Samples that primarily show the use of one client library should be placed in the
2626client library repository. Other samples should be placed in this repository
2727` python-docs-samples ` .
2828
@@ -100,6 +100,20 @@ local variables” warnings.
100100The use of [ Black] ( https://pypi.org/project/black/ ) to standardize code
101101formatting and simplify diffs is recommended, but optional.
102102
103+ The default noxfile has ` blacken ` session for convenience. Here are
104+ some examples.
105+
106+ If you have pyenv configured:
107+ ``` sh
108+ nox -s blacken
109+ ```
110+
111+ If you only have docker:
112+ ```
113+ cd proj_directory
114+ ../scripts/run_tests_local.sh . blacken
115+ ```
116+
103117In addition to the syntax guidelines covered in PEP 8, samples should strive
104118to follow the Pythonic philosophy outlined in the
105119[ PEP 20 - Zen of Python] ( https://www.python.org/dev/peps/pep-0020/ ) as well
@@ -485,7 +499,7 @@ Automated testing for samples is managed by
485499including the flake8 linter, Python 2.7 , Python 3. x, and App Engine tests,
486500as well as automated README generation.
487501
488- __Note:__
502+ __Note:__
489503
490504** Library repositories:** If you are working on an existing project, a `noxfile.py` will already exist.
491505For new samples, create a new `noxfile.py` and paste the contents of
0 commit comments