refactor: fix linter errors

This commit is contained in:
Juro Oravec 2024-04-14 16:48:55 +02:00
parent e6725c8445
commit fd9c441024
2 changed files with 0 additions and 2 deletions

View file

@ -50,7 +50,6 @@ def _filepath_to_python_module(file_path: Path) -> str:
# Get the root dir, see https://stackoverflow.com/a/16413955/9788634
project_root = os.path.abspath(os.path.dirname(__name__))
rel_path = os.path.relpath(file_path, start=project_root)
rel_path_without_suffix = str(Path(rel_path).with_suffix(""))

View file

@ -158,4 +158,3 @@ class TestFilepathToPythonModule(SimpleTestCase):
_filepath_to_python_module(Path("tests\\components\\relative_file\\relative_file.py")),
"tests.components.relative_file.relative_file",
)