-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #759 from DHI/typed
Indicate that MIKE IO uses type hints
- Loading branch information
Showing
3 changed files
with
82 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,25 @@ | |
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.build] | ||
license-files = { paths = ["License.txt"] } | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = ["notebooks", "tests", "images", ".github", "docs", ".devcontainer", "*.md", "*.txt", ".gitattributes"] | ||
exclude = [ | ||
"notebooks", | ||
"tests", | ||
"images", | ||
".github", | ||
"docs", | ||
".devcontainer", | ||
"*.md", | ||
"*.txt", | ||
".gitattributes", | ||
] | ||
|
||
[project] | ||
name="mikeio" | ||
version="2.2.dev3" | ||
name = "mikeio" | ||
version = "2.2.dev3" | ||
dependencies = [ | ||
"mikecore>=0.2.1", | ||
"numpy>=1.22.0", | ||
|
@@ -20,11 +33,11 @@ dependencies = [ | |
] | ||
|
||
authors = [ | ||
{ name="Henrik Andersson",email="[email protected]"}, | ||
{ name = "Jesper Sandvig Mariegaard", email="[email protected]" } | ||
{ name = "Henrik Andersson", email = "[email protected]" }, | ||
{ name = "Jesper Sandvig Mariegaard", email = "[email protected]" }, | ||
] | ||
description="A package that uses the DHI dfs libraries to create, write and read dfs and mesh files." | ||
license="BSD-3-Clause" | ||
description = "A package that uses the DHI dfs libraries to create, write and read dfs and mesh files." | ||
license = "BSD-3-Clause" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
|
@@ -41,34 +54,43 @@ classifiers = [ | |
] | ||
|
||
[project.optional-dependencies] | ||
dev = ["pytest", | ||
"quarto-cli", | ||
"quartodoc==0.9.1", | ||
"shapely", | ||
"pyproj", | ||
"xarray", | ||
"netcdf4", | ||
"rasterio", | ||
"polars", | ||
"ruff==0.6.2", | ||
"mypy==1.11.1", | ||
] | ||
dev = [ | ||
"pytest", | ||
"quarto-cli", | ||
"quartodoc==0.9.1", | ||
"shapely", | ||
"pyproj", | ||
"xarray", | ||
"netcdf4", | ||
"rasterio", | ||
"polars", | ||
"ruff==0.6.2", | ||
"mypy==1.11.1", | ||
] | ||
|
||
test = ["pytest", "pytest-cov", "xarray","mypy==1.11.1","shapely","pyproj", "polars"] | ||
test = [ | ||
"pytest", | ||
"pytest-cov", | ||
"xarray", | ||
"mypy==1.11.1", | ||
"shapely", | ||
"pyproj", | ||
"polars", | ||
] | ||
|
||
notebooks= [ | ||
"nbformat", | ||
"nbconvert", | ||
"jupyter", | ||
"xarray", | ||
"netcdf4", | ||
"rasterio", | ||
"geopandas", | ||
"scikit-learn", | ||
"matplotlib", | ||
"folium", | ||
"mapclassify", | ||
] | ||
notebooks = [ | ||
"nbformat", | ||
"nbconvert", | ||
"jupyter", | ||
"xarray", | ||
"netcdf4", | ||
"rasterio", | ||
"geopandas", | ||
"scikit-learn", | ||
"matplotlib", | ||
"folium", | ||
"mapclassify", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/DHI/mikeio" | ||
|
@@ -80,4 +102,14 @@ notebooks= [ | |
# ignore long lines | ||
ignore = ["E501", "E741"] | ||
|
||
select = ["D100", "D101", "D102", "D103", "D202", "D212", "D413", "D415", "D417"] | ||
select = [ | ||
"D100", | ||
"D101", | ||
"D102", | ||
"D103", | ||
"D202", | ||
"D212", | ||
"D413", | ||
"D415", | ||
"D417", | ||
] |