Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/nox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 1 addition & 4 deletions adaptive/learner/balancing_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
else:
from typing_extensions import TypeAlias

if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal
from typing import Literal

try:
import pandas
Expand Down
2 changes: 1 addition & 1 deletion adaptive/learner/learnerND.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ def _get_iso(self, level=0.0, which="surface"):
vertices = [] # index -> (x,y,z)
faces_or_lines = [] # tuple of indices of the corner points

@functools.lru_cache()
@functools.lru_cache
def _get_vertex_index(a, b):
vertex_a = self.tri.vertices[a]
vertex_b = self.tri.vertices[b]
Expand Down
7 changes: 1 addition & 6 deletions adaptive/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from contextlib import suppress
from datetime import datetime, timedelta
from importlib.util import find_spec
from typing import TYPE_CHECKING, Any, Callable, Optional, Union
from typing import TYPE_CHECKING, Any, Callable, Literal, Optional, Union

import loky

Expand Down Expand Up @@ -46,11 +46,6 @@
else:
from typing_extensions import TypeAlias

if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal


with_ipyparallel = find_spec("ipyparallel") is not None
with_distributed = find_spec("distributed") is not None
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"environment_type": "conda",
"install_timeout": 600,
"show_commit_url": "https://github.com/python-adaptive/adaptive/commits/",
"pythons": ["3.7"],
"pythons": ["3.8"],
"conda_channels": ["conda-forge"],
"matrix": {
"numpy": ["1.13"],
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import nox


@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
@nox.parametrize("all_deps", [True, False])
def pytest(session, all_deps):
session.install(".[testing,other]" if all_deps else ".[testing]")
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ dynamic = ["version"]
description = "Parallel active learning of mathematical functions"
maintainers = [{ name = "Adaptive authors" }]
license = { text = "BSD" }
requires-python = ">=3.7"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down Expand Up @@ -96,11 +95,11 @@ output = ".coverage.xml"

[tool.mypy]
ignore_missing_imports = true
python_version = "3.7"
python_version = "3.8"

[tool.ruff]
line-length = 150
target-version = "py37"
target-version = "py38"
select = ["B", "C", "E", "F", "W", "T", "B9", "I", "UP"]
ignore = [
"T20", # flake8-print
Expand Down