Debian Codegraph @

pyproject.toml

raw
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 "IPython",
34 "jupyter",
35 ]
36
37 docs = [
38 "mkdocs>=1.4.3,<2.0",
39 "mkdocs-material>=9.5",
40 "pygments",
41 ]
42
43 deploy = [
44 "hatch",
45 ]
46
47 [project.urls]
48 Source = "https://github.com/developmentseed/geojson-pydantic"
49
50
51 [build-system]
52 requires = ["hatchling"]
53 build-backend = "hatchling.build"
54
55 [tool.hatch.version]
56 path = "geojson_pydantic/__init__.py"
57
58 [tool.hatch.build.targets.sdist]
59 only-include = ["geojson_pydantic/"]
60
61 [tool.hatch.build.targets.wheel]
62 only-include = ["geojson_pydantic/"]
63
64 [tool.coverage.run]
65 branch = true
66 parallel = true
67
68 [tool.coverage.report]
69 exclude_lines = [
70 "no cov",
71 "if __name__ == .__main__.:",
72 "if TYPE_CHECKING:",
73 ]
74
75 [tool.isort]
76 profile = "black"
77 known_first_party = ["geojson_pydantic"]
78 known_third_party = ["pydantic"]
79 default_section = "THIRDPARTY"
80
81 [tool.mypy]
82 plugins = ["pydantic.mypy"]
83 disallow_untyped_calls = true
84 disallow_untyped_defs = true
85 disallow_incomplete_defs = true
86 warn_redundant_casts = true
87 warn_unused_ignores = true
88 no_implicit_optional = true
89 show_error_codes = true
90
91 [tool.ruff.lint]
92 select = [
93 "D1", # pydocstyle errors
94 "E", # pycodestyle errors
95 "W", # pycodestyle warnings
96 "F", # flake8
97 "C", # flake8-comprehensions
98 "B", # flake8-bugbear
99 ]
100 ignore = [
101 "E501", # line too long, handled by black
102 "B008", # do not perform function calls in argument defaults
103 "B905", # ignore zip() without an explicit strict= parameter, only support with python >3.10
104 ]
105
106 [tool.ruff.lint.per-file-ignores]
107 "tests/*.py" = ["D1"]
108
109 [tool.bumpversion]
110 current_version = "2.2.0"
111
112 search = "{current_version}"
113 replace = "{new_version}"
114 regex = false
115 tag = true
116 commit = true
117 tag_name = "{new_version}"
118
119 [[tool.bumpversion.files]]
120 filename = "geojson_pydantic/__init__.py"
121 search = '__version__ = "{current_version}"'
122 replace = '__version__ = "{new_version}"'