Skip to content

Commit 5711c02

Browse files
author
Tasuku OKUDA
committed
Specify pydoctyle version due to dependency issue (workaround)
Current flake8-docstring (on 2017/4/26) try to use latest version of pydocstyle - 2.0.0, but it is not stable for now. I got following error due to using flake8-docstrings w/ pydocstyle v2.0.0. ``` Traceback (most recent call last): File "/Users/JP11542/.pyenv/versions/3.5.2/lib/python3.5/multiprocessing/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/Users/JP11542/.ghq/github.com/okdtsk/line-bot-sdk-python/.tox/py35-flake8-src/lib/python3.5/site-packages/flake8/checker.py", line 642, in _run_checks return checker.run_checks() File "/Users/JP11542/.ghq/github.com/okdtsk/line-bot-sdk-python/.tox/py35-flake8-src/lib/python3.5/site-packages/flake8/checker.py", line 573, in run_checks self.run_ast_checks() File "/Users/JP11542/.ghq/github.com/okdtsk/line-bot-sdk-python/.tox/py35-flake8-src/lib/python3.5/site-packages/flake8/checker.py", line 480, in run_ast_checks checker = self.run_check(plugin, tree=ast) File "/Users/JP11542/.ghq/github.com/okdtsk/line-bot-sdk-python/.tox/py35-flake8-src/lib/python3.5/site-packages/flake8/checker.py", line 429, in run_check return plugin['plugin'](**arguments) File "/Users/JP11542/.ghq/github.com/okdtsk/line-bot-sdk-python/.tox/py35-flake8-src/lib/python3.5/site-packages/flake8_docstrings.py", line 53, in __init__ self.checker = pep257.PEP257Checker() AttributeError: module 'pydocstyle' has no attribute 'PEP257Checker' ```
1 parent 2a2e758 commit 5711c02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ basepython = python3.5
1717
deps =
1818
flake8
1919
flake8-docstrings
20+
pydocstyle==1.1.1
2021
commands = flake8 linebot/
2122

2223
[testenv:py35-flake8-other]

0 commit comments

Comments
 (0)