Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#25)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 20.8b1 → 21.4b0](psf/black@20.8b1...21.4b0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Apr 27, 2021
1 parent 3d1b513 commit d31d2ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 21.4b0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
Expand Down
6 changes: 3 additions & 3 deletions napari_plugin_engine/manager.py
Expand Up @@ -406,7 +406,7 @@ def _register_dict(
return self.register(namespace, name)

def get_name(self, plugin):
""" Return name for registered plugin or ``None`` if not registered. """
"""Return name for registered plugin or ``None`` if not registered."""
for name, val in self.plugins.items():
if plugin == val:
return name
Expand Down Expand Up @@ -662,7 +662,7 @@ def check_pending(self):
)

def get_hookcallers(self, plugin: Any) -> Optional[List[HookCaller]]:
""" get all hook callers for the specified plugin. """
"""get all hook callers for the specified plugin."""
return self._plugin2hookcallers.get(plugin)

def add_hookcall_monitoring(
Expand Down Expand Up @@ -706,7 +706,7 @@ def undo():
return undo

def enable_tracing(self):
"""Enable tracing of hook calls and return an undo function. """
"""Enable tracing of hook calls and return an undo function."""
hooktrace = self.trace.root.get("hook")

def before(hook_name, methods, kwargs):
Expand Down

0 comments on commit d31d2ae

Please sign in to comment.