diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-01-19 21:20:47 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-01-19 21:20:47 +0000 |
commit | 89b0c0862e588990e62fb79d43e9935efa753d8a (patch) | |
tree | 184f46760c87fe0e2410d0b83898ac6bac2b9d56 | |
parent | ba2ae6cd8213b5e5a9674e2ea1451c881fb8719c (diff) | |
download | troggle-89b0c0862e588990e62fb79d43e9935efa753d8a.tar.gz troggle-89b0c0862e588990e62fb79d43e9935efa753d8a.tar.bz2 troggle-89b0c0862e588990e62fb79d43e9935efa753d8a.zip |
ran ruff to remove unused imports
-rw-r--r-- | databaseReset.py | 8 | ||||
-rw-r--r-- | pyproject.toml | 7 |
2 files changed, 7 insertions, 8 deletions
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 |