Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend flake8 and address some issues #745

Merged
merged 2 commits into from
Nov 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ dev-test:

.PHONY: flake8
flake8:
flake8 breathe/*.py \
breathe/directives/*.py \
breathe/finder/*.py \
breathe/renderer/sphinxrenderer.py \
breathe/renderer/filter.py \
breathe/parser/compound.py
flake8 breathe

.PHONY: black
black:
Expand Down
2 changes: 1 addition & 1 deletion breathe/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ def create_index_parser(self) -> DoxygenIndexParser:
return DoxygenIndexParser(self.app, self.cache)

def create_compound_parser(self, project_info: ProjectInfo) -> DoxygenCompoundParser:
return DoxygenCompoundParser(self.app, self.cache, project_info)
return DoxygenCompoundParser(self.app, self.cache, project_info)
4 changes: 3 additions & 1 deletion breathe/parser/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from xml.dom import minidom
from xml.parsers.expat import ExpatError


from . import indexsuper as supermod


class DoxygenTypeSub(supermod.DoxygenType):

node_type = "doxygen"
Expand Down Expand Up @@ -41,9 +41,11 @@ def __init__(self, kind=None, refid=None, name=''):
class ParseError(Exception):
pass


class FileIOError(Exception):
pass


def parse(inFilename):
try:
doc = minidom.parse(inFilename)
Expand Down
3 changes: 0 additions & 3 deletions breathe/renderer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from breathe.renderer.filter import Filter
from breathe.renderer.target import TargetHandler

from docutils import nodes
import textwrap

Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ license_file = LICENSE

[flake8]
max-line-length = 100
exclude=compoundsuper.py,indexsuper.py
exclude = compoundsuper.py,indexsuper.py
extend-ignore = E203, E231
per-file-ignores =
breathe/parser/index.py:E305

[bdist_wheel]
universal = 0