mirror of
https://github.com/django-components/django-components.git
synced 2025-09-25 06:59:10 +00:00
refactor: fix linter errors
This commit is contained in:
parent
e6725c8445
commit
fd9c441024
2 changed files with 0 additions and 2 deletions
|
@ -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(""))
|
||||
|
||||
|
|
|
@ -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",
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue