Follow pep257 strictly
Bug #1248939 reported by
Radomir Dopieralski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tuskar-ui |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
It would be nice to follow the pep257 (http://
* Fix the current docstrings to follow pep257,
* Add a check to the gate jobs to make that stay.
There is a number of tools we could use:
* https:/
* https:/
* https:/
We need to choose one of them. Any opinions?
Changed in tuskar-ui: | |
status: | Incomplete → Won't Fix |
To post a comment you must log in.
flake8-docstings looks like a best option, because all it requires is adding it to the test-requiremen ts.txt, but unfortunately right now it fails for me with the error:
Traceback (most recent call last): sheep/devel/ tuskar- ui/.venv/ bin/flake8" , line 9, in <module> entry_point( 'flake8= =2.0', 'console_scripts', 'flake8')() sheep/devel/ tuskar- ui/.venv/ local/lib/ python2. 7/site- packages/ flake8/ main.py" , line 29, in main style.check_ files() sheep/devel/ tuskar- ui/.venv/ local/lib/ python2. 7/site- packages/ pep8.py" , line 1604, in check_files input_dir( path) sheep/devel/ tuskar- ui/.venv/ local/lib/ python2. 7/site- packages/ pep8.py" , line 1640, in input_dir os.path. join(root, filename)) sheep/devel/ tuskar- ui/.venv/ local/lib/ python2. 7/site- packages/ flake8/ engine. py", line 69, in input_file check_all( expected= expected, line_offset= line_offset) sheep/devel/ tuskar- ui/.venv/ local/lib/ python2. 7/site- packages/ pep8.py" , line 1348, in check_all check_ast( ) sheep/devel/ tuskar- ui/.venv/ local/lib/ python2. 7/site- packages/ pep8.py" , line 1329, in check_ast lines[lineno - 1]):
File "/home/
load_
File "/home/
report = flake8_
File "/home/
self.
File "/home/
runner(
File "/home/
return fchecker.
File "/home/
self.
File "/home/
if not noqa(self.
IndexError: list index out of range