Unable to select D212 or D213 errors
Please describe how you installed Flake8
$ pip install flake8-docstrings
Collecting flake8-docstrings
Using cached flake8_docstrings-1.1.0-py2.py3-none-any.whl
Collecting flake8 (from flake8-docstrings)
Using cached flake8-3.3.0-py2.py3-none-any.whl
Collecting flake8-polyfill (from flake8-docstrings)
Using cached flake8_polyfill-1.0.1-py2.py3-none-any.whl
Collecting pydocstyle>=2.0 (from flake8-docstrings)
Using cached pydocstyle-2.0.0-py2.py3-none-any.whl
Collecting enum34; python_version < "3.4" (from flake8->flake8-docstrings)
Using cached enum34-1.1.6-py2-none-any.whl
Collecting configparser; python_version < "3.2" (from flake8->flake8-docstrings)
Collecting mccabe<0.7.0,>=0.6.0 (from flake8->flake8-docstrings)
Using cached mccabe-0.6.1-py2.py3-none-any.whl
Collecting pycodestyle<2.4.0,>=2.0.0 (from flake8->flake8-docstrings)
Using cached pycodestyle-2.3.1-py2.py3-none-any.whl
Collecting pyflakes<1.6.0,>=1.5.0 (from flake8->flake8-docstrings)
Using cached pyflakes-1.5.0-py2.py3-none-any.whl
Collecting snowballstemmer (from pydocstyle>=2.0->flake8-docstrings)
Using cached snowballstemmer-1.2.1-py2.py3-none-any.whl
Collecting six (from pydocstyle>=2.0->flake8-docstrings)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: enum34, configparser, mccabe, pycodestyle, pyflakes, flake8, flake8-polyfill, snowballstemmer, six, pydocstyle, flake8-docstrings
Successfully installed configparser-3.5.0 enum34-1.1.6 flake8-3.3.0 flake8-docstrings-1.1.0 flake8-polyfill-1.0.1 mccabe-0.6.1 pycodestyle-2.3.1 pydocstyle-2.0.0 pyflakes-1.5.0 six-1.10.0 snowballstemmer-1.2.1
Please provide the exact, unmodified output of flake8 --bug-report
{
"dependencies": [
{
"dependency": "setuptools",
"version": "36.0.1"
}
],
"platform": {
"python_implementation": "CPython",
"python_version": "2.7.13",
"system": "Darwin"
},
"plugins": [
{
"plugin": "flake8-docstrings",
"version": "1.1.0, pydocstyle: 2.0.0"
},
{
"plugin": "mccabe",
"version": "0.6.1"
},
{
"plugin": "pycodestyle",
"version": "2.3.1"
},
{
"plugin": "pyflakes",
"version": "1.5.0"
}
],
"version": "3.3.0"
}
Please describe the problem or feature
flake8-docstrings doesn't seem to be passing D212 or D213 to pydocstyle.
If this is a bug report, please explain with examples (and example code) what you expected to happen and what actually happened.
def one():
"""
Summary.
Description.
"""
pass
def two():
"""Summary.
Description.
"""
pass
With pydocstyle:
$ pydocstyle --select=D212,D213 t.py
./t.py:1 in public function `one`:
D212: Multi-line docstring summary should start at the first line
./t.py:10 in public function `two`:
D213: Multi-line docstring summary should start at the second line
With flake8-docstrings:
$ flake8 --select=D212,D213 t.py