Skip to content

Commit

Permalink
pip_audit: avoid noqa: F401 using dunder-all (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuo-cpp authored Dec 6, 2021
1 parent a8f9fa2 commit a280852
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 13 deletions.
4 changes: 3 additions & 1 deletion pip_audit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
The `pip_audit` APIs.
"""

from pip_audit._version import __version__ # noqa: F401
from pip_audit._version import __version__

__all__ = ["__version__"]
19 changes: 15 additions & 4 deletions pip_audit/_dependency_source/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@
Dependency source interfaces and implementations for `pip-audit`.
"""

from .interface import ( # noqa: F401
from .interface import (
DependencyResolver,
DependencyResolverError,
DependencySource,
DependencySourceError,
)
from .pip import PipSource, PipSourceError # noqa: F401
from .requirement import RequirementSource # noqa: F401
from .resolvelib import ResolveLibResolver # noqa: F401
from .pip import PipSource, PipSourceError
from .requirement import RequirementSource
from .resolvelib import ResolveLibResolver

__all__ = [
"DependencyResolver",
"DependencyResolverError",
"DependencySource",
"DependencySourceError",
"PipSource",
"PipSourceError",
"RequirementSource",
"ResolveLibResolver",
]
7 changes: 6 additions & 1 deletion pip_audit/_dependency_source/resolvelib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
`resolvelib` interactions for `pip-audit`.
"""

from .resolvelib import ResolveLibResolver, ResolveLibResolverError # noqa: F401
from .resolvelib import ResolveLibResolver, ResolveLibResolverError

__all__ = [
"ResolveLibResolver",
"ResolveLibResolverError",
]
15 changes: 11 additions & 4 deletions pip_audit/_format/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
Output format interfaces and implementations for `pip-audit`.
"""

from .columns import ColumnsFormat # noqa: F401
from .cyclonedx import CycloneDxFormat # noqa: F401
from .interface import VulnerabilityFormat # noqa: F401
from .json import JsonFormat # noqa: F401
from .columns import ColumnsFormat
from .cyclonedx import CycloneDxFormat
from .interface import VulnerabilityFormat
from .json import JsonFormat

__all__ = [
"ColumnsFormat",
"CycloneDxFormat",
"VulnerabilityFormat",
"JsonFormat",
]
17 changes: 14 additions & 3 deletions pip_audit/_service/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,24 @@
Vulnerability service interfaces and implementations for `pip-audit`.
"""

from .interface import ( # noqa: F401
from .interface import (
Dependency,
ResolvedDependency,
ServiceError,
SkippedDependency,
VulnerabilityResult,
VulnerabilityService,
)
from .osv import OsvService # noqa: F401
from .pypi import PyPIService # noqa: F401
from .osv import OsvService
from .pypi import PyPIService

__all__ = [
"Dependency",
"ResolvedDependency",
"ServiceError",
"SkippedDependency",
"VulnerabilityResult",
"VulnerabilityService",
"OsvService",
"PyPIService",
]

0 comments on commit a280852

Please sign in to comment.