We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb8bea0 commit c874909Copy full SHA for c874909
2 files changed
datajoint/plugin.py
@@ -1,7 +1,7 @@
1
import logging
2
+from importlib.metadata import distribution, entry_points
3
from pathlib import Path
4
-from importlib.metadata import distribution, entry_points
5
from cryptography.exceptions import InvalidSignature
6
from otumat import hash_pkg, verify
7
@@ -39,7 +39,7 @@ def _import_plugins(category):
39
eps = entry_points()
40
41
# Handle both Python 3.9 and 3.10+ entry points API
42
- if hasattr(eps, 'select'):
+ if hasattr(eps, "select"):
43
group_eps = eps.select(group=group_name)
44
else:
45
group_eps = eps.get(group_name, [])
tests/test_plugin.py
@@ -1,6 +1,6 @@
+from importlib.metadata import distribution
from os import path
-from importlib.metadata import distribution
import pytest
import datajoint.errors as djerr
0 commit comments