refactor: linter fixes

This commit is contained in:
Juro Oravec 2024-04-13 21:37:52 +02:00
parent 003c8ba4d5
commit 78503de0ec
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ def import_file(file_path: Path) -> None:
rel_path = os.path.relpath(file_path, start=project_root)
rel_path_without_suffix = str(Path(rel_path).with_suffix(""))
module_name = rel_path_without_suffix.replace(os.sep, ".")
# This imports the file and runs it's code. So if the file defines any
# django components, they will be registered.
importlib.import_module(module_name)

View file

@ -1,6 +1,6 @@
import glob
from pathlib import Path
from typing import List, Optional, NamedTuple
from typing import List, NamedTuple, Optional
from django.template.engine import Engine