| 1 |
[project] |
| 2 |
name = "geojson-pydantic" |
| 3 |
description = "Pydantic data models for the GeoJSON spec." |
| 4 |
readme = "README.md" |
| 5 |
requires-python = ">=3.9" |
| 6 |
license = {file = "LICENSE"} |
| 7 |
authors = [ |
| 8 |
{name = "Drew Bollinger", email = "[email protected]"}, |
| 9 |
] |
| 10 |
keywords = ["geojson", "Pydantic"] |
| 11 |
classifiers = [ |
| 12 |
"Intended Audience :: Information Technology", |
| 13 |
"Intended Audience :: Science/Research", |
| 14 |
"License :: OSI Approved :: MIT License", |
| 15 |
"Programming Language :: Python :: 3.9", |
| 16 |
"Programming Language :: Python :: 3.10", |
| 17 |
"Programming Language :: Python :: 3.11", |
| 18 |
"Programming Language :: Python :: 3.12", |
| 19 |
"Programming Language :: Python :: 3.13", |
| 20 |
"Programming Language :: Python :: 3.14", |
| 21 |
"Topic :: Scientific/Engineering :: GIS", |
| 22 |
"Typing :: Typed", |
| 23 |
] |
| 24 |
dynamic = ["version"] |
| 25 |
dependencies = ["pydantic~=2.0"] |
| 26 |
|
| 27 |
[dependency-groups] |
| 28 |
dev = [ |
| 29 |
"pytest", |
| 30 |
"pytest-cov", |
| 31 |
"shapely", |
| 32 |
"pre-commit", |
| 33 |
] |
| 34 |
|
| 35 |
docs = [ |
| 36 |
"mkdocs>=1.4.3,<2.0", |
| 37 |
"mkdocs-material>=9.5", |
| 38 |
"pygments", |
| 39 |
] |
| 40 |
|
| 41 |
deploy = [ |
| 42 |
"hatch", |
| 43 |
] |
| 44 |
|
| 45 |
[project.urls] |
| 46 |
Source = "https://github.com/developmentseed/geojson-pydantic" |
| 47 |
|
| 48 |
|
| 49 |
[build-system] |
| 50 |
requires = ["hatchling"] |
| 51 |
build-backend = "hatchling.build" |
| 52 |
|
| 53 |
[tool.hatch.version] |
| 54 |
path = "geojson_pydantic/__init__.py" |
| 55 |
|
| 56 |
[tool.hatch.build.targets.sdist] |
| 57 |
only-include = ["geojson_pydantic/"] |
| 58 |
|
| 59 |
[tool.hatch.build.targets.wheel] |
| 60 |
only-include = ["geojson_pydantic/"] |
| 61 |
|
| 62 |
[tool.coverage.run] |
| 63 |
branch = true |
| 64 |
parallel = true |
| 65 |
|
| 66 |
[tool.coverage.report] |
| 67 |
exclude_lines = [ |
| 68 |
"no cov", |
| 69 |
"if __name__ == .__main__.:", |
| 70 |
"if TYPE_CHECKING:", |
| 71 |
] |
| 72 |
|
| 73 |
[tool.isort] |
| 74 |
profile = "black" |
| 75 |
known_first_party = ["geojson_pydantic"] |
| 76 |
known_third_party = ["pydantic"] |
| 77 |
default_section = "THIRDPARTY" |
| 78 |
|
| 79 |
[tool.mypy] |
| 80 |
plugins = ["pydantic.mypy"] |
| 81 |
disallow_untyped_calls = true |
| 82 |
disallow_untyped_defs = true |
| 83 |
disallow_incomplete_defs = true |
| 84 |
warn_redundant_casts = true |
| 85 |
warn_unused_ignores = true |
| 86 |
no_implicit_optional = true |
| 87 |
show_error_codes = true |
| 88 |
|
| 89 |
[tool.ruff.lint] |
| 90 |
select = [ |
| 91 |
"D1", |
| 92 |
"E", |
| 93 |
"W", |
| 94 |
"F", |
| 95 |
"C", |
| 96 |
"B", |
| 97 |
] |
| 98 |
ignore = [ |
| 99 |
"E501", |
| 100 |
"B008", |
| 101 |
"B905", |
| 102 |
] |
| 103 |
|
| 104 |
[tool.ruff.lint.per-file-ignores] |
| 105 |
"tests/*.py" = ["D1"] |
| 106 |
|
| 107 |
[tool.bumpversion] |
| 108 |
current_version = "2.1.2" |
| 109 |
|
| 110 |
search = "{current_version}" |
| 111 |
replace = "{new_version}" |
| 112 |
regex = false |
| 113 |
tag = true |
| 114 |
commit = true |
| 115 |
tag_name = "{new_version}" |
| 116 |
|
| 117 |
[[tool.bumpversion.files]] |
| 118 |
filename = "geojson_pydantic/__init__.py" |
| 119 |
search = '__version__ = "{current_version}"' |
| 120 |
replace = '__version__ = "{new_version}"' |