refactor(examples): add noqa comment to silence import-order lint warnings
- Bug Fixes: - Silence flake8 E402 import-order warnings in example scripts
This commit is contained in:
7 files changed
+12
-12
No files matched your search
@@ -8,7 +8,7 @@ import sys
|
|||||||
|
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
||||||
|
|
||||||
from djinit.templater import template_engine
|
from djinit.templater import template_engine # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
def check_template_consistency():
|
def check_template_consistency():
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import sys
|
|||||||
|
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
||||||
|
|
||||||
from djinit.creators.setup import SetupCreator
|
from djinit.creators.setup import SetupCreator # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
def create_project(name, metadata):
|
def create_project(name, metadata):
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import sys
|
|||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
||||||
|
|
||||||
from djinit.creators.setup import SetupCreator
|
from djinit.creators.setup import SetupCreator # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
def create_test_project(name, structure, metadata, use_github=False, use_gitlab=False):
|
def create_test_project(name, structure, metadata, use_github=False, use_gitlab=False):
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ Comprehensive test for ALL djinit features and use cases.
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src")) # noqa: E402
|
||||||
|
|
||||||
import shutil
|
import shutil # noqa: E402
|
||||||
|
|
||||||
from djinit.creators.setup import SetupCreator
|
from djinit.creators.setup import SetupCreator # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
def create_project(name, metadata, structure="standard"):
|
def create_project(name, metadata, structure="standard"):
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ Run from the djinit project root: PYTHONPATH=src python3 examples/test_all_struc
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src")) # noqa: E402
|
||||||
|
|
||||||
from djinit.templater import template_engine
|
from djinit.templater import template_engine # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
def print_section(title):
|
def print_section(title):
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ Comprehensive test for all djinit features including pytest.
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src")) # noqa: E402
|
||||||
|
|
||||||
from djinit.creators.setup import SetupCreator
|
from djinit.creators.setup import SetupCreator # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
def create_project(name, metadata):
|
def create_project(name, metadata):
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ Comprehensive test for all djinit features including Vue.
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src")) # noqa: E402
|
||||||
|
|
||||||
from djinit.creators.setup import SetupCreator
|
from djinit.creators.setup import SetupCreator # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
def create_project(name, metadata):
|
def create_project(name, metadata):
|
||||||
|
|||||||
Reference in new issue
Block a user