From 019b3e9fe22b31b830e7d9751619cb193f76149d Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Tue, 24 Oct 2023 16:31:49 +0200 Subject: [PATCH] cmk should be a namespace package. Change-Id: Ib4cf67a6fa51741433c5092ee4a4f30dcae39c97 --- packages/cmk-graphing/cmk/__init__.py | 4 ---- packages/cmk-graphing/pyproject.toml | 1 + packages/cmk-graphing/run | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 packages/cmk-graphing/cmk/__init__.py diff --git a/packages/cmk-graphing/cmk/__init__.py b/packages/cmk-graphing/cmk/__init__.py deleted file mode 100644 index 1efbb0e6603..00000000000 --- a/packages/cmk-graphing/cmk/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env python3 -# Copyright (C) 2023 Checkmk GmbH - License: GNU General Public License v2 -# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and -# conditions defined in the file COPYING, which is part of this source code package. diff --git a/packages/cmk-graphing/pyproject.toml b/packages/cmk-graphing/pyproject.toml index b3315eed4d7..4339f8ca049 100644 --- a/packages/cmk-graphing/pyproject.toml +++ b/packages/cmk-graphing/pyproject.toml @@ -22,6 +22,7 @@ py_version = 311 known_first_party = "werks" [tool.mypy] +explicit_package_bases = true strict = true # Miscellaneous stuff not in --strict disallow_any_decorated = true diff --git a/packages/cmk-graphing/run b/packages/cmk-graphing/run index 7ca5ad20f75..97497f30fa3 100755 --- a/packages/cmk-graphing/run +++ b/packages/cmk-graphing/run @@ -163,13 +163,13 @@ run_unit_tests() { run_mypy() { setup_venv # shellcheck disable=SC2086 - mypy --scripts-are-modules --show-error-codes $1 + mypy $1 } run_pylint() { setup_venv # shellcheck disable=SC2086 - pylint --jobs="${JOBS}" $1 + PYTHONPATH=. pylint --jobs="${JOBS}" $1 } run_bandit() {