diff --git a/scripts/print_vers.py b/scripts/print_vers.py index 457808152..d422df040 100644 --- a/scripts/print_vers.py +++ b/scripts/print_vers.py @@ -4,6 +4,7 @@ ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + def check_file(path, prefix, case_sensitive=False): with open(os.path.join(ROOT_DIR, path), "r") as f: for line in f: @@ -11,9 +12,10 @@ def check_file(path, prefix, case_sensitive=False): if case_sensitive: line = line.lower() if line.startswith(prefix): - print(path,":", line) + print(path, ":", line) + check_file("crates/hyperqueue/Cargo.toml", "version") check_file("crates/pyhq/Cargo.toml", "version") check_file("nedoc.conf", "project_version") -check_file("CHANGELOG.md", "# dev", case_sensitive=True) \ No newline at end of file +check_file("CHANGELOG.md", "# dev", case_sensitive=True) diff --git a/tests/pyapi/__init__.py b/tests/pyapi/__init__.py index 2ff914973..77988d49e 100644 --- a/tests/pyapi/__init__.py +++ b/tests/pyapi/__init__.py @@ -1,10 +1,11 @@ import os.path from typing import List, Tuple -from hyperqueue import LocalCluster from hyperqueue.client import Client from hyperqueue.job import Job +from hyperqueue import LocalCluster + from ..conftest import HqEnv from ..utils.mock import ProgramMock diff --git a/tests/pyapi/test_cluster.py b/tests/pyapi/test_cluster.py index a77a4668f..a53d73a75 100644 --- a/tests/pyapi/test_cluster.py +++ b/tests/pyapi/test_cluster.py @@ -1,5 +1,4 @@ import pytest - from hyperqueue.cluster import LocalCluster, WorkerConfig from hyperqueue.job import Job diff --git a/tests/pyapi/test_function.py b/tests/pyapi/test_function.py index d061b617c..b581d8c6e 100644 --- a/tests/pyapi/test_function.py +++ b/tests/pyapi/test_function.py @@ -3,7 +3,6 @@ from pathlib import Path import pytest - from hyperqueue.client import Client, FailedJobsException, PythonEnv from hyperqueue.ffi.protocol import ResourceRequest from hyperqueue.job import Job diff --git a/tests/pyapi/test_job.py b/tests/pyapi/test_job.py index cdee595b5..9bfa8cf9a 100644 --- a/tests/pyapi/test_job.py +++ b/tests/pyapi/test_job.py @@ -4,7 +4,6 @@ import iso8601 import pytest - from hyperqueue.client import FailedJobsException from hyperqueue.ffi.protocol import ResourceRequest from hyperqueue.job import Job