You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pr-coding-guidelines.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -91,19 +91,19 @@ For product and design contributions, check out the [Design Repo](https://github
91
91
Try to take care to follow existing conventions. Some of these are defined in an [.editorconfig](https://github.com/webcompat/webcompat.com/blob/master/.editorconfig) file. You can download the plugin for your editor here http://editorconfig.org/#download.
92
92
93
93
### Python
94
-
As we are still very early in the project, we do not yet have that many conventions fornaming, routes, APIs. Ifin doubt, ask us or open an issue. All Python code should pass [pep8](http://pep8.readthedocs.org/en/1.4.6/intro.html).
94
+
As we are still very early in the project, we do not yet have that many conventions fornaming, routes, APIs. Ifin doubt, ask us or open an issue. All Python code should pass [pycodestyle](http://pycodestyle.pycqa.org/en/latest/intro.html).
95
95
96
-
You can check this by installing the pep8 module.
96
+
You can check this by installing the pycodestyle module. This is usually installed through the requirements file in the project. If you wish to install it yourself on your computer, you can do.
97
97
98
-
sudo pip install pep8
98
+
pip install --user pycodestyle
99
99
100
100
Once at the root of the project you can run it with
That will show you the list of errors and their explanations. Another tool, we have used for checking consistency of the code is `flake8` + `hacking`. [Hacking](https://github.com/openstack-dev/hacking) is a set of [OpenStack guidelines](http://docs.openstack.org/developer/hacking/) which is used by the community for the stability of their projects. You will see that there's nothing really hard about it.
105
105
106
-
sudo pip install hacking
106
+
pip install --user hacking
107
107
108
108
will install the relevant flake8 and hacking modules. In the same fashion, if you do
0 commit comments