Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ classifiers = [
dependencies = [
"click>=8.1.0",
"rich>=13.0.0",
"revenueholdings-license>=0.1.0",
"pathspec>=0.11.0",
"pyyaml>=6.0",
]
Expand All @@ -36,6 +35,7 @@ dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
license = ["revenueholdings-license>=0.1.0"]

[project.scripts]
deadcode = "deadcode.cli:cli"
Expand Down
8 changes: 7 additions & 1 deletion src/deadcode/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
import click
from rich.console import Console
from rich.table import Table
from revenueholdings_license import require_license
try:
from revenueholdings_license import require_license
except ImportError:
import warnings
warnings.warn("revenueholdings-license not installed; license checks skipped", stacklevel=2)
def require_license(product: str) -> None: # type: ignore[misc]
pass

from . import __version__
from .config import DeadCodeConfig
Expand Down
Loading