Commit 3a357def authored by leszeks's avatar leszeks

docstyle correction , removing check for missing docstring from docstyle

parent c8288b01
Pipeline #805 passed with stage
in 38 seconds
......@@ -29,6 +29,7 @@ class NotFound(PLWNAPIException):
"""Base for exceptions raised when an object is not found."""
def __init__(self, lemma, pos, variant, *args):
"""Initialize NotFound."""
super(NotFound, self).__init__(*args)
self.args = ('lemma={!r} pos={!r} variant={!r}'.format(
......@@ -63,6 +64,7 @@ class MalformedIdentifierException(ReaderException):
"""
def __init__(self, id_):
"""Initialize MalformedIdentifierException."""
super(MalformedIdentifierException, self).__init__(
"Malformed identifier, expected digits at the end of the original"
" id instead got {!r}"
......@@ -83,6 +85,7 @@ class DumpVersionException(LoadException):
"""
def __init__(self, version_is, version_required):
"""Initialize DumpVersionException."""
super(DumpVersionException, self).__init__(version_is,
version_required)
self.version_is = version_is
......
......@@ -61,7 +61,6 @@ def parse_comment_string(cmt_str):
:returns: Extracted and ordered items needed by PLWN API.
:rtype: CommentData
"""
try:
cmt = plwnc.Comment.parse(cmt_str, WN_TAGS)
except plwnce.PLWNCommentsException:
......
......@@ -46,7 +46,6 @@ def wndb_reader(wordnet_db_url):
:return: a generator over PLwordnet entities.
:rtype: generator
"""
db_eng = sa.create_engine(wordnet_db_url)
db_meta = sa.MetaData(db_eng)
visited_synsets = set()
......
"""Implementation of Relation Resolver."""
from __future__ import absolute_import, division
......
......@@ -561,7 +561,6 @@ class LexicalUnit(bases.LexicalUnitBase):
Use :class:`PLWordNet` methods to obtain lexical units.
"""
self._relr = get_default_relation_resolver()
self._db = conn
......
"""Implementation that stores data from plWordNet as a GraphML tree."""
from __future__ import absolute_import, division
try:
str = unicode
......@@ -65,6 +67,7 @@ class GraphMLWordNet(object):
)
def __init__(self):
"""Initialize GraphMLWordNet."""
self._root = et.Element(
u'graphml',
# The commented out xmlns declaration is correct, but inserting
......@@ -783,7 +786,6 @@ class _AttrIncluder(object):
return ``True`` if it should be included and ``False`` otherwise.
:type checkfunc: Callable[[str], bool]
"""
self._graphout = graphout
self._prefix = type_prefix
self._check = checkfunc
......
......@@ -23,6 +23,7 @@ class TupWrapper(object):
__slots__ = '_gen',
def __init__(self, generator):
"""Initialize TupWrapper."""
self._gen = generator
def __iter__(self):
......
......@@ -26,7 +26,11 @@ max-line-length = 80
[pydocstyle]
# D101 Missing docstring in public class
# D102 Missing docstring in public method
# D103 Missing docstring in public function
# D104 Missing docstring in public package
# D105 Missing docstring in magic method
# D203 1 blank line required before class docstring
# D213 Multi-line docstring summary should start at the second line
# D214 Section is over-indented
......@@ -39,6 +43,6 @@ max-line-length = 80
# D409 Section underline should match the length of its name
# D410 Missing blank line after section
# D411 Missing blank line before section
ignore = D104,D203,D213,D214,D215,D401,D405,D406,D407,D408,D409,D410,D411
ignore = D101,D102,D103,D104,D105,D203,D213,D214,D215,D401,D405,D406,D407,D408,D409,D410,D411
match-dir = ^(?!\.tox|venv).*
match = ^(?!setup).*\.py
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment