Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jul 30, 2024
1 parent d4a237a commit 0ae6cf1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions breathe/directives/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,22 @@ def set_temp_data(
for name, directive in directives.items():
app.add_directive(name, directive)

app.add_config_value("breathe_projects", {}, True) # Dict[str, str]
app.add_config_value("breathe_default_project", "", True) # str
app.add_config_value("breathe_projects", {}, "env") # Dict[str, str]
app.add_config_value("breathe_default_project", "", "env") # str
# Provide reasonable defaults for domain_by_extension mapping. Can be overridden by users.
app.add_config_value(
"breathe_domain_by_extension", {"py": "py", "cs": "cs"}, True
) # Dict[str, str]
app.add_config_value("breathe_domain_by_file_pattern", {}, True) # Dict[str, str]
app.add_config_value("breathe_projects_source", {}, True)
app.add_config_value("breathe_build_directory", "", True)
app.add_config_value("breathe_default_members", (), True)
app.add_config_value("breathe_domain_by_file_pattern", {}, "env") # Dict[str, str]
app.add_config_value("breathe_projects_source", {}, "env")
app.add_config_value("breathe_build_directory", "", "env")
app.add_config_value("breathe_default_members", (), "env")
app.add_config_value("breathe_show_define_initializer", False, "env")
app.add_config_value("breathe_show_enumvalue_initializer", False, "env")
app.add_config_value("breathe_show_include", True, "env")
app.add_config_value("breathe_implementation_filename_extensions", [".c", ".cc", ".cpp"], True)
app.add_config_value("breathe_doxygen_config_options", {}, True)
app.add_config_value("breathe_doxygen_aliases", {}, True)
app.add_config_value("breathe_implementation_filename_extensions", [".c", ".cc", ".cpp"], "env")
app.add_config_value("breathe_doxygen_config_options", {}, "env")
app.add_config_value("breathe_doxygen_aliases", {}, "env")
app.add_config_value("breathe_use_project_refids", False, "env")
app.add_config_value("breathe_order_parameters_first", False, "env")
app.add_config_value("breathe_separate_member_pages", False, "env")
Expand Down
2 changes: 1 addition & 1 deletion breathe/renderer/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def __call__(self, node_stack) -> str:
except AttributeError as e:
# Horrible hack to silence errors on filtering unicode objects
# until we fix the parsing
if type(data_object) == str:
if type(data_object) is str:
return "unicode"
else:
raise e
Expand Down
1 change: 0 additions & 1 deletion breathe/renderer/sphinxrenderer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import sphinx

from breathe.parser import compound, compoundsuper, DoxygenCompoundParser
from breathe.project import ProjectInfo
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ lint = [
"mypy>=1",
"types-docutils",
"types-Pygments",
"pytest>=8.0", # for mypy
]
test = [
"pytest>=8.0",
Expand Down

0 comments on commit 0ae6cf1

Please sign in to comment.