diff --git a/.coverage b/.coverage new file mode 100644 index 00000000..3e0cd5a1 Binary files /dev/null and b/.coverage differ diff --git a/README.md b/README.md index feb11d93..3359cfca 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,11 @@ source env/bin/activate # go out of old venv deactivate # delete old venv -rm -r env +rm -r .venv # create new venv -python3 -m venv env +python3 -m venv .venv # activate new venv -source env/bin/activate +source .venv/bin/activate ``` ### Install dependencies diff --git a/mypy.ini b/mypy.ini index b3bd0382..e1376e8c 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,5 @@ [mypy] -plugins = numpy.typing.mypy_plugin, pydantic.mypy +plugins = pydantic.mypy [mypy-geopandas.*] ignore_missing_imports = True diff --git a/pyproject.toml b/pyproject.toml index 6c86b5f7..206c57d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,23 +16,23 @@ readme = { file = "README.md", content-type = "text/markdown" } license-files = ["LICENSE"] requires-python = ">=3.10" dependencies = [ - "geoengine-openapi-client == 0.0.26", + "geoengine-openapi-client == 0.0.27", "geopandas >=1.0,<2.0", "matplotlib >=3.5,<3.11", "numpy >=1.21,<2.4", - "owslib >=0.27,<0.35", - "pillow >=10.0,<12", - "pyarrow >=17.0,<21", - "python-dotenv >=0.19,<1.2", + "owslib >=0.27,<0.36", + "pillow >=10.0,<13", + "pyarrow >=17.0,<23", + "python-dotenv >=0.19,<1.3", "rasterio >=1.3,<2", "requests >= 2.26,<3", - "rioxarray >=0.9.1, <0.20", + "rioxarray >=0.9.1, <0.21", "StrEnum >=0.4.6,<0.5", # TODO: use from stdlib when `python_requires = >=3.11` "vega >= 3.5,<4.2", "websockets >= 14.2,<16", - "xarray >=0.19,<2025.8", + "xarray >=0.19,<2025.10", "urllib3 >= 2.1, < 2.6", - "pydantic >= 2.10.6, < 2.12", + "pydantic >= 2.10.6, < 2.13", 'skl2onnx >=1.19.1,<1.20', ] @@ -42,12 +42,12 @@ Repository = "https://github.com/geo-engine/geoengine-python" [project.optional-dependencies] # TODO: use [dependency-groups] in the future dev = [ - "build >=0.7,<1.3", + "build >=0.7,<1.4", "mypy >=1.14,<2.0", "pdoc3 >=0.10,<0.12", "ruff >=0.12.3,<0.13", # formatter & linter "setuptools >=62,<81", - "twine >=3.4,<6.2", # PyPI + "twine >=3.4,<6.3", # PyPI "types-requests >=2.26,<3", # mypy type hints "types-setuptools >=71.1,<81", # mypy type hints "wheel >=0.37,<0.46", @@ -55,12 +55,12 @@ dev = [ test = [ "psycopg >=3.2,<4", "pytest >=6.3,<9", - "pytest-cov >=6.0,<7", + "pytest-cov >=6.0,<7.1", "requests_mock >=1.9,<2", "scikit-learn >=1.5,<1.8", ] examples = [ - "cartopy >=0.22,<0.25", # for WMS example + "cartopy >=0.22,<0.26", # for WMS example "ipympl >=0.9.4,<0.10", # for ML example "ipyvuetify >=1.10,<1.12", # for ML app "ipywidgets >=8.1.5,<9", # for ML example diff --git a/tests/test_ml.py b/tests/test_ml.py index ad8e6597..f10ddb18 100644 --- a/tests/test_ml.py +++ b/tests/test_ml.py @@ -27,7 +27,7 @@ class MlModelTests(unittest.TestCase): def setUp(self) -> None: ge.reset(False) - def test_model_dim_to_tensorshape(self): + def test_model_dim_to_tensorshape(self) -> None: """Test model_dim_to_tensorshape""" dim_1d: list[TSP.Dimension] = [TSP.Dimension(dim_value=7)]