-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fcb109
commit 48b29bc
Showing
6 changed files
with
106 additions
and
29 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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Development - Contributing | ||
|
||
Issues and pull requests are more than welcome: https://github.com/developmentseed/tilebench/issues | ||
|
||
**dev install** | ||
|
||
```bash | ||
git clone https://github.com/developmentseed/tilebench.git | ||
cd tilebench | ||
python -m pip install -e ".[dev,test]" | ||
``` | ||
|
||
You can then run the tests with the following command: | ||
|
||
```sh | ||
python -m pytest --cov tilebench --cov-report term-missing -s -vv | ||
``` | ||
|
||
This repo is set to use `pre-commit` to run *isort*, *flake8*, *pydocstring*, *black* ("uncompromising Python code formatter") and mypy when committing new code. | ||
|
||
```bash | ||
$ pre-commit install | ||
``` |
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,7 +2,7 @@ | |
name = "tilebench" | ||
description = "Inspect HEAD/LIST/GET requests withing Rasterio" | ||
requires-python = ">=3.8" | ||
license = "MIT" | ||
license = {file = "LICENSE"} | ||
authors = [ | ||
{name = "Vincent Sarago", email = "[email protected]"}, | ||
] | ||
|
@@ -20,13 +20,11 @@ classifiers = [ | |
] | ||
dynamic = ["version", "readme"] | ||
dependencies = [ | ||
"aiofiles", | ||
"fastapi>=0.73", | ||
"fastapi>=0.100.0", | ||
"jinja2>=3.0,<4.0.0", | ||
"geojson-pydantic", | ||
"loguru", | ||
"rasterio>=1.3.0", | ||
"rio-tiler>=4.0,<6.0", | ||
"rio-tiler>=6.0,<7.0", | ||
"wurlitzer", | ||
"uvicorn[standard]", | ||
] | ||
|
@@ -92,8 +90,19 @@ known_third_party = ["rasterio", "rio_tiler", "morecantile", "geojson_pydantic", | |
default_section = "THIRDPARTY" | ||
|
||
[tool.mypy] | ||
no_strict_optional = "True" | ||
no_strict_optional = true | ||
|
||
[tool.pydocstyle] | ||
select = "D1" | ||
match = "(?!test).*.py" | ||
[tool.ruff] | ||
select = [ | ||
"D1", # pydocstyle errors | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings | ||
"F", # flake8 | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
] | ||
ignore = [ | ||
"E501", # line too long, handled by black | ||
"B008", # do not perform function calls in argument defaults | ||
"B905", # ignore zip() without an explicit strict= parameter, only support with python >3.10 | ||
] |
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
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