Skip to content

Commit

Permalink
upper bound dependencies and adds typed marked file so mypy knows thi…
Browse files Browse the repository at this point in the history
…s lib is typed
  • Loading branch information
BielStela committed May 14, 2024
1 parent a101481 commit f530bc6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ dependencies = [
"numpy>=1",
"pyproj>=3.0.0",
"rasterio>=1.3",
"morecantile>=4.3.0",
"rio_tiler>=5.0.0",
"morecantile>=5.0.0,<6.0.0",
"rio_tiler>=6.0.0,<7.0.0",
]

[project.urls]
Expand All @@ -43,6 +43,9 @@ dev = ["pre-commit"]
distributed = ["dask[distributed]"]
docs = ["Sphinx", "sphinxcontrib-napoleon", "furo", "nbsphinx", "nbconvert"]

[tool.setuptools.package-data]
cog_worker = ["py.typed"]

[tool.ruff]
line-length = 120
extend-include = ["*.ipynb"]
Expand All @@ -54,10 +57,10 @@ select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # flake8
"C", # flake8-comprehensions
"B", # flake8-bugbear
"N", # Naming conventions
"I", # isort
"UP", # pyupgrade
"PL", # Pylint
]
pydocstyle.convention = "google"
pydocstyle.ignore-decorators = ["property"]
Expand All @@ -66,6 +69,7 @@ pydocstyle.ignore-decorators = ["property"]
"**/{tests}/*" = [
"D103", # Missing docstring in public function
"D100", # Missing docstring in public module
"PLR2004" # Magic value used in comparisson. Not a problem in tests
]

[tool.bumpversion]
Expand Down

0 comments on commit f530bc6

Please sign in to comment.