Skip to content

Commit

Permalink
RRD entry points: Properly annotate allowed import
Browse files Browse the repository at this point in the history
Change-Id: Ie3d747708af64b376035a369c91eb8095e9a963e
  • Loading branch information
LarsMichelsen committed Feb 28, 2025
1 parent fcc125c commit 81af462
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cmk-convert-rrds
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import rrdtool # type: ignore[import-not-found]
# NOTE: rrdtool is missing type hints
from cmk.utils.hostaddress import HostName

from cmk.rrd.convert_rrds import convert_rrds # pylint: disable=cmk-module-layer-violation
from cmk.rrd.convert_rrds import convert_rrds


def main() -> None:
Expand Down
2 changes: 1 addition & 1 deletion bin/cmk-create-rrd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# NOTE: rrdtool is missing type hints
import rrdtool # type: ignore[import-not-found]

from cmk.rrd.create_rrd import create_rrd # pylint: disable=cmk-module-layer-violation
from cmk.rrd.create_rrd import create_rrd


def main() -> None:
Expand Down
2 changes: 2 additions & 0 deletions tests/pylint/checker_cmk_module_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,8 @@ def _is_allowed_for_rrd(
ModulePath("bin/cmk-validate-plugins"): Component("cmk.validate_plugins"),
ModulePath("bin/post-rename-site"): Component("cmk.post_rename_site"),
ModulePath("bin/mkeventd"): Component("cmk.ec"),
ModulePath("bin/cmk-convert-rrds"): Component("cmk.rrd"),
ModulePath("bin/cmk-create-rrd"): Component("cmk.rrd"),
ModulePath("omd/packages/enterprise/bin/liveproxyd"): Component("cmk.cee.liveproxy"),
ModulePath("omd/packages/enterprise/bin/mknotifyd"): Component("cmk.cee.mknotifyd"),
ModulePath("omd/packages/enterprise/bin/dcd"): Component("cmk.cee.dcd"),
Expand Down

0 comments on commit 81af462

Please sign in to comment.