Unverified Commit 30f53a9f authored by Seb Brown's avatar Seb Brown Committed by GitHub
Browse files

Merge pull request #110 from jkevingutierrez/patch-8

Fix linters
parents 26d4cafd e5aef416
...@@ -24,7 +24,7 @@ lts_42: ...@@ -24,7 +24,7 @@ lts_42:
flake8: flake8:
stage: lint stage: lint
image: python:3.8 image: python:3.10
before_script: before_script:
- pip install flake8 - pip install flake8
script: script:
......
...@@ -11,7 +11,7 @@ def run(): ...@@ -11,7 +11,7 @@ def run():
try: try:
execute_from_command_line([sys.argv[0], 'test'] + sys.argv[1:]) execute_from_command_line([sys.argv[0], 'test'] + sys.argv[1:])
finally: finally:
from tests.app.settings import STATIC_ROOT, MEDIA_ROOT from tests.app.settings import MEDIA_ROOT, STATIC_ROOT
shutil.rmtree(STATIC_ROOT, ignore_errors=True) shutil.rmtree(STATIC_ROOT, ignore_errors=True)
shutil.rmtree(MEDIA_ROOT, ignore_errors=True) shutil.rmtree(MEDIA_ROOT, ignore_errors=True)
......
from tests.app.settings import * # noqa: F401,F403 from tests.app.settings import * # noqa: F401,F403
ALLOWED_HOSTS = ["*"] ALLOWED_HOSTS = ["*"]
DATABASES = { DATABASES = {
......
...@@ -6,8 +6,8 @@ import shutil ...@@ -6,8 +6,8 @@ import shutil
import subprocess import subprocess
import tempfile import tempfile
from django.core.files.base import ContentFile
from django.conf import settings from django.conf import settings
from django.core.files.base import ContentFile
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment