Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d082952

Browse files
tswastJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Add style guide information to CONTRIBUTING.md. (GoogleCloudPlatform#481)
1 parent f29f26d commit d082952

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,24 @@ be able to accept your pull requests.
2727
Contributor License Agreement (see details above).
2828
1. Fork the desired repo, develop and test your code changes.
2929
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.
3431
1. Ensure that your code has an appropriate set of unit tests which all pass.
3532
1. Submit a pull request.
3633

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+
3748
## Testing
3849

3950
See [TESTING.md](TESTING.md).

0 commit comments

Comments
 (0)