File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ and ensure the documentation is generating.
6565 $ pip install tox
6666 $ tox
6767
68+ You also need to ensure your code is PEP8 compliant (following the project rules: see ``pep8.rc `` file):
69+
70+ .. code-block :: console
71+
72+ $ make pep8
73+
6874
6975 **Don't forget client-side code and tests. **
7076
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ coverage:
3737 @coverage report --rcfile=coverage.rc
3838
3939pep8 :
40- @pep8 $(PACKAGE ) --max-line-length=120 --ignore=E128,E122,E125 && echo ' PEP8: OK'
40+ @pep8 $(PACKAGE ) --config=pep8.rc
41+ @echo ' PEP8: OK'
4142
4243pylint :
4344 @pylint --rcfile=pylint.rc $(PACKAGE )
4748 @cd $(DOCDIR ) && make html
4849 @echo ' Done'
4950
50- dist :
51+ dist : minify
5152 @echo ' Generating a distributable python package'
52- @./minify.sh
5353 @python setup.py sdist
5454 @echo ' Done'
5555
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ def test_user_disabled(self):
234234 def test_context_whitelist (self ):
235235 '''Should only include context variable from settings.JS_CONTEXT if set'''
236236 result = self .process_request ()
237- self .assertEqual (len (result .keys ()), 2 + 1 ) #: User is always in context
237+ self .assertEqual (len (result .keys ()), 2 + 1 ) # User is always in context
238238 self .assertIn ('STATIC_URL' , result )
239239 self .assertIn ('LANGUAGE_CODE' , result )
240240
Original file line number Diff line number Diff line change 1+ [pep8]
2+ ignore = E128,E122,E125
3+ max-line-length = 120
You can’t perform that action at this time.
0 commit comments