Skip to content

Commit

Permalink
Ignore complexity violations in natbib (since it is not really mainta…
Browse files Browse the repository at this point in the history
…ined).
  • Loading branch information
mcmtroffaes committed Jul 31, 2021
1 parent d433a5d commit e6a5b7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/natbib.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def get_author(self, authors, all_authors=False):
author = author.replace('}', '')
return author

def cite(self, cmd, refuri, global_keys):
# TODO refactor to reduce complexity, for now ignore C901
def cite(self, cmd, refuri, global_keys): # noqa: C901
"""
Return a docutils Node consisting of properly formatted citations
children nodes.
Expand Down Expand Up @@ -344,7 +345,8 @@ class CitationReferencesDirective(Directive):
'path': directives.unchanged,
}

def get_reference_node(self, ref):
# TODO refactor to reduce complexity, for now ignore C901
def get_reference_node(self, ref): # noqa: C901
node = nodes.inline('', '', classes=[ref.type, 'reference'])

namestyler = pybtex.style.names.plain.NameStyle()
Expand Down

0 comments on commit e6a5b7f

Please sign in to comment.