Skip to content

Commit

Permalink
Clean imports
Browse files Browse the repository at this point in the history
Removed unused imports and disabled pylint warnings on some lines.

Re spine-tools/Spine-Toolbox#2895
  • Loading branch information
Henrik Koski committed Jul 18, 2024
1 parent c5a7ef0 commit f0a9e81
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def clean_kernel_name(kname):
kname.encode("ascii")
except UnicodeEncodeError:
# Replace accented characters with unaccented equivalents
import unicodedata
import unicodedata # pylint: disable=import-outside-toplevel

Check warning on line 111 in spine_engine/execution_managers/conda_kernel_spec_manager.py

View check run for this annotation

Codecov / codecov/patch

spine_engine/execution_managers/conda_kernel_spec_manager.py#L111

Added line #L111 was not covered by tests

nfkd_form = unicodedata.normalize("NFKD", kname)
kname = "".join([c for c in nfkd_form if not unicodedata.combining(c)])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# https://github.com/Anaconda-Platform/nb_conda_kernels/blob/master/nb_conda_kernels/runner.py

from __future__ import print_function
import locale
import os
import subprocess
import sys

Check warning on line 7 in spine_engine/execution_managers/conda_kernel_spec_runner.py

View check run for this annotation

Codecov / codecov/patch

spine_engine/execution_managers/conda_kernel_spec_runner.py#L7

Added line #L7 was not covered by tests
Expand Down
1 change: 0 additions & 1 deletion spine_engine/server/engine_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import os
import queue
import threading
import time
import uuid
import zmq
from zmq.auth.thread import ThreadAuthenticator
Expand Down
2 changes: 1 addition & 1 deletion spine_engine/server/ping_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import json
import threading
import zmq
import zmq # pylint: disable=unused-import
from spine_engine.server.service_base import ServiceBase
from spine_engine.server.util.server_message import ServerMessage

Expand Down
2 changes: 1 addition & 1 deletion spine_engine/server/project_extractor_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import os
import threading
import uuid
import zmq
import zmq # pylint: disable=unused-import
from spine_engine.server.service_base import ServiceBase
from spine_engine.server.util.server_message import ServerMessage
from spine_engine.server.util.zip_handler import ZipHandler
Expand Down
2 changes: 1 addition & 1 deletion spine_engine/server/project_remover_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import os
import shutil
import threading
import zmq
import zmq # pylint: disable=unused-import
from spine_engine.server.service_base import ServiceBase


Expand Down
2 changes: 1 addition & 1 deletion spine_engine/server/project_retriever_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import os
import shutil
import threading
import zmq
import zmq # pylint: disable=unused-import
from spine_engine.server.service_base import ServiceBase
from spine_engine.server.util.server_message import ServerMessage
from spine_engine.utils.helpers import get_file_size
Expand Down

0 comments on commit f0a9e81

Please sign in to comment.