diff --git a/parsl/app/futures.py b/parsl/app/futures.py index 5fa98f1bec..6425d0fa0d 100644 --- a/parsl/app/futures.py +++ b/parsl/app/futures.py @@ -1,12 +1,13 @@ """This module implements DataFutures. """ +import logging import os.path +from concurrent.futures import Future +from datetime import datetime, timezone from hashlib import md5 -import logging from os import stat -from concurrent.futures import Future from typing import TYPE_CHECKING, Optional -from datetime import datetime, timezone + import typeguard from parsl.data_provider.files import File diff --git a/parsl/data_provider/files.py b/parsl/data_provider/files.py index 1dcdac4b68..286212e783 100644 --- a/parsl/data_provider/files.py +++ b/parsl/data_provider/files.py @@ -5,13 +5,12 @@ on where (client-side, remote-side, intermediary-side) the File.filepath is being called from. """ +import datetime import logging -from hashlib import md5 import os -import datetime +import uuid from typing import Optional, Union from urllib.parse import urlparse -import uuid import typeguard diff --git a/parsl/dataflow/dflow.py b/parsl/dataflow/dflow.py index 4b9a0a5167..19a2b11263 100644 --- a/parsl/dataflow/dflow.py +++ b/parsl/dataflow/dflow.py @@ -3,7 +3,6 @@ import atexit import concurrent.futures as cf import datetime -from hashlib import md5 import inspect import logging import os @@ -15,6 +14,7 @@ from concurrent.futures import Future from functools import partial from getpass import getuser +from hashlib import md5 from socket import gethostname from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union from uuid import uuid4 diff --git a/parsl/executors/base.py b/parsl/executors/base.py index c8caec6732..751502ef09 100644 --- a/parsl/executors/base.py +++ b/parsl/executors/base.py @@ -1,8 +1,8 @@ import os +import uuid from abc import ABCMeta, abstractmethod from concurrent.futures import Future from typing import Any, Callable, Dict, Optional -import uuid from typing_extensions import Literal, Self diff --git a/parsl/monitoring/visualization/views.py b/parsl/monitoring/visualization/views.py index f237ff48f4..67aec121ad 100644 --- a/parsl/monitoring/visualization/views.py +++ b/parsl/monitoring/visualization/views.py @@ -1,19 +1,22 @@ +import datetime +import os.path as ospath + import pandas as pd from flask import current_app as app from flask import render_template, request -import os.path as ospath import parsl.monitoring.queries.pandas as queries +from parsl.monitoring.visualization.form_fields import FileForm from parsl.monitoring.visualization.models import ( + Environment, + File, + InputFile, + MiscInfo, + OutputFile, Status, Task, Workflow, db, - File, - InputFile, - OutputFile, - Environment, - MiscInfo, ) from parsl.monitoring.visualization.plots.default.task_plots import ( time_series_memory_per_task_plot, @@ -29,10 +32,6 @@ worker_efficiency, ) -from parsl.monitoring.visualization.form_fields import FileForm - -import datetime - dummy = True diff --git a/parsl/tests/test_monitoring/test_file_provenance.py b/parsl/tests/test_monitoring/test_file_provenance.py index a063f092b5..ed7ee6e746 100644 --- a/parsl/tests/test_monitoring/test_file_provenance.py +++ b/parsl/tests/test_monitoring/test_file_provenance.py @@ -1,13 +1,14 @@ -import pytest import os import shutil import time +import pytest + import parsl from parsl.config import Config +from parsl.data_provider.files import File from parsl.executors import ThreadPoolExecutor from parsl.monitoring import MonitoringHub -from parsl.data_provider.files import File @parsl.bash_app