Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 8, 2022
1 parent ad9ff2e commit c34e42b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
5 changes: 4 additions & 1 deletion sphinx_toolbox/flake8.py
Expand Up @@ -72,7 +72,10 @@
# this package
from sphinx_toolbox.utils import Purger, SphinxExtMetadata, metadata_add_version

__all__ = ("Flake8CodesDirective", "setup", )
__all__ = (
"Flake8CodesDirective",
"setup",
)

table_node_purger = Purger("all_flake8_code_table_nodes")

Expand Down
2 changes: 1 addition & 1 deletion sphinx_toolbox/latex/__init__.py
Expand Up @@ -165,8 +165,8 @@
#

# stdlib
from os.path import join as joinpath
import re
from os.path import join as joinpath
from textwrap import dedent
from typing import Any, List, Optional, cast

Expand Down
6 changes: 3 additions & 3 deletions sphinx_toolbox/more_autodoc/autonamedtuple.py
Expand Up @@ -474,9 +474,9 @@ def run(self) -> List[nodes.Node]:
if "noindexentry" not in self.options:
key = name[0].upper()
pair = [ # pylint: disable=W8301
_("%s (namedtuple in %s)") % (classname, modname),
_("%s (namedtuple field)") % name,
]
_("%s (namedtuple in %s)") % (classname, modname),
_("%s (namedtuple field)") % name,
]
self.indexnode["entries"].append(("pair", "; ".join(pair), node_id, '', key))

return [self.indexnode, node]
Expand Down
2 changes: 1 addition & 1 deletion sphinx_toolbox/more_autodoc/typehints.py
Expand Up @@ -114,11 +114,11 @@ def setup(app: Sphinx) -> Dict[str, Any]:
import inspect
import itertools
import json
from operator import itemgetter
import re
import sys
import types
from contextlib import suppress
from operator import itemgetter
from tempfile import TemporaryDirectory
from types import FunctionType, ModuleType
from typing import (
Expand Down
12 changes: 6 additions & 6 deletions sphinx_toolbox/more_autosummary/__init__.py
Expand Up @@ -561,12 +561,12 @@ def get_object_members(self, want_all: bool) -> Tuple[bool, ObjectMembers]:
ret.append((mname, safe_getattr(self.object, mname)))
except AttributeError:
logger.warning(
operator.mod( # pylint: disable=dotted-import-in-loop)
__("missing attribute mentioned in :members: or __all__: module %s, attribute %s"),
(safe_getattr(self.object, "__name__", "???"), mname),
),
type="autodoc"
)
operator.mod( # pylint: disable=dotted-import-in-loop)
__("missing attribute mentioned in :members: or __all__: module %s, attribute %s"),
(safe_getattr(self.object, "__name__", "???"), mname),
),
type="autodoc"
)
return False, ret


Expand Down

0 comments on commit c34e42b

Please sign in to comment.