File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,24 @@ be able to accept your pull requests.
27
27
Contributor License Agreement (see details above).
28
28
1 . Fork the desired repo, develop and test your code changes.
29
29
1 . Ensure that your code adheres to the existing style in the sample to which
30
- you are contributing. Refer to the
31
- [ Google Cloud Platform Samples Style Guide]
32
- (https://github.com/GoogleCloudPlatform/Template/wiki/style.html ) for the
33
- recommended coding standards for this organization.
30
+ you are contributing.
34
31
1 . Ensure that your code has an appropriate set of unit tests which all pass.
35
32
1 . Submit a pull request.
36
33
34
+ ## Style
35
+
36
+ Samples in this repository follow [ PEP
37
+ 8] ( https://www.python.org/dev/peps/pep-0008/ ) and the [ Google Python Style
38
+ Guide] ( https://google.github.io/styleguide/pyguide.html ) . This is enforced using
39
+ the [ flake8] ( https://pypi.python.org/pypi/flake8 ) tool.
40
+
41
+ To use the same flake8 configuration as is used in the automated test suite,
42
+ install [ nox] ( https://nox.readthedocs.io/en/latest/ ) and run
43
+
44
+ ``` shell
45
+ nox -s lint -- path/to/sample
46
+ ```
47
+
37
48
## Testing
38
49
39
50
See [ TESTING.md] ( TESTING.md ) .
You can’t perform that action at this time.
0 commit comments