diff --git a/databaseReset.py b/databaseReset.py index 0d00bc2..55d1182 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -4,7 +4,6 @@ import os import resource import sys import time -import timeit import settings @@ -39,13 +38,8 @@ print(f" - Memory footprint after loading Django: {resource.getrusage(resource.R from django.contrib.auth.models import User from django.core import management -from django.db import close_old_connections, connection, connections, transaction -from django.http import HttpResponse -from django.urls import reverse +from django.db import connection, transaction -import troggle.core.models.survex -from troggle.core.models.caves import Cave, Entrance -from troggle.core.models.troggle import DataIssue from troggle.core.utils import get_process_memory from troggle.parsers.imports import ( import_caves, diff --git a/pyproject.toml b/pyproject.toml index 2c382fb..fb3b412 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,4 +2,9 @@ line-length = 120 [tool.isort] -profile = 'black' \ No newline at end of file +profile = 'black' +line-length=120 + +[tool.ruff] +line-length=120 +ignore = ["E402"] \ No newline at end of file