Skip to content

Commit 0a959f8

Browse files
author
Tyler Goodlet
committed
Expose proper public imports and fix tests to match
1 parent bfc2ae3 commit 0a959f8

File tree

9 files changed

+15
-20
lines changed

9 files changed

+15
-20
lines changed

pluggy/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
__all__ = ["PluginManager", "PluginValidationError", "HookCallError",
44
"HookspecMarker", "HookimplMarker"]
55

6-
from .manager import *
7-
from .manager import _formatdef
8-
from .callers import _multicall, HookCallError, _Result, _legacymulticall
9-
from .hooks import HookspecMarker, HookimplMarker, _HookRelay, _HookCaller, varnames
6+
from .manager import PluginManager, PluginValidationError
7+
from .callers import HookCallError
8+
from .hooks import HookspecMarker, HookimplMarker

pluggy/manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import inspect
22
from . import _tracing
3-
from .callers import _Result
43
from .hooks import HookImpl, _HookRelay, _HookCaller, normalize_hookimpl_opts
54

65

testing/benchmark.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
Benchmarking and performance tests.
33
"""
44
import pytest
5-
from pluggy import (_multicall, _legacymulticall, HookImpl, HookspecMarker,
6-
HookimplMarker)
5+
from pluggy import HookspecMarker, HookimplMarker
6+
from pluggy.hooks import HookImpl
7+
from pluggy.callers import _multicall, _legacymulticall
78

89
hookspec = HookspecMarker("example")
910
hookimpl = HookimplMarker("example")

testing/test_details.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import warnings
2-
32
import pytest
4-
5-
from pluggy import PluginManager, HookimplMarker, HookspecMarker, _Result
3+
from pluggy import PluginManager, HookimplMarker, HookspecMarker
4+
from pluggy.callers import _Result
65

76
hookspec = HookspecMarker("example")
87
hookimpl = HookimplMarker("example")

testing/test_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from pluggy import _formatdef, varnames
1+
from pluggy.hooks import varnames
2+
from pluggy.manager import _formatdef
23

34

45
def test_varnames():

testing/test_method_ordering.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import pytest
2-
3-
42
import sys
53
import types
64

7-
from pluggy import PluginManager, HookImpl, HookimplMarker, HookspecMarker
5+
from pluggy import PluginManager, HookimplMarker, HookspecMarker
6+
from pluggy.hooks import HookImpl
87

98
hookspec = HookspecMarker("example")
109
hookimpl = HookimplMarker("example")

testing/test_multicall.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import pytest
2-
3-
from pluggy import _multicall, _legacymulticall, HookImpl, HookCallError
4-
from pluggy.callers import _LegacyMultiCall
5-
from pluggy import HookspecMarker, HookimplMarker
2+
from pluggy import HookCallError, HookspecMarker, HookimplMarker
3+
from pluggy.hooks import HookImpl
4+
from pluggy.callers import _multicall, _legacymulticall, _LegacyMultiCall
65

76

87
hookspec = HookspecMarker("example")

testing/test_pluginmanager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pytest
22
import types
3-
43
from pluggy import (PluginValidationError,
54
HookCallError, HookimplMarker, HookspecMarker)
65

testing/test_tracer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
from pluggy._tracing import TagTracer
32

43
import pytest

0 commit comments

Comments
 (0)