Update development_environment.markdown (#446)

Hint on PEP257 checking with flake8-docstrings
This commit is contained in:
Johann Kellerman 2016-05-05 00:59:07 +02:00 committed by Fabian Affolter
parent df505f0a21
commit 3cd5c43e56

View File

@ -46,10 +46,12 @@ After following these steps, running `hass` will invoke your local installation.
Home Assistant enforces strict [PEP8 style](https://www.python.org/dev/peps/pep-0008/) compliance on all code submitted. You can save yourself the hassle of extra commits just to fix style errors by enabling the flake8 git commit hook. It will check your code when you attempt to commit to the repo. It will block the commit if there are any style issues, giving you a chance to fix it. Home Assistant enforces strict [PEP8 style](https://www.python.org/dev/peps/pep-0008/) compliance on all code submitted. You can save yourself the hassle of extra commits just to fix style errors by enabling the flake8 git commit hook. It will check your code when you attempt to commit to the repo. It will block the commit if there are any style issues, giving you a chance to fix it.
```bash ```bash
$ pip install flake8 $ pip install flake8 flake8-docstrings
$ flake8 --install-hook $ flake8 --install-hook
``` ```
The flake8-docstrings extension will check docstrings according to [PEP257](https://www.python.org/dev/peps/pep-0257/) when running flake8.
### {% linkable_title Submitting improvements %} ### {% linkable_title Submitting improvements %}
Improvements to Home Assistant should be submitted one feature at a time using GitHub [pull requests](https://help.github.com/articles/using-pull-requests). Improvements to Home Assistant should be submitted one feature at a time using GitHub [pull requests](https://help.github.com/articles/using-pull-requests).