-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
124 lines (105 loc) · 3.34 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[tool.poetry]
name = "nldi-py"
version = "0.1.0"
description = "The Hydro Network Linked Data Index (NLDI) puts a restful application programming interface (API) in front of the National Hydrolography dataset (NHD). Now, instead of needing to be a GIS professional, any web developer can build tools against the core data in the NHD in a scalable, workable way."
authors = ["Benjamin Webb <[email protected]>"]
# maintainers = [ "Benjamin Webb <[email protected]>"]
license = "CC0" # See https://spdx.org/licenses/
readme = "README.md"
homepage="https://github.com/internetofwater/nldi-py"
repository="https://github.com/internetofwater/nldi-py"
keywords = [ 'usgs', 'nldi', 'nhgf', 'nhd' ]
classifiers=[ # see https://pypi.org/classifiers/
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering :: Information Analysis'
]
packages= [ {include = "nldi", from = "src" } ]
[tool.poetry.scripts]
nldi = "nldi.cmdline:cli"
[tool.poetry.dependencies]
python = "^3.11"
click = ">7,<=8"
pydantic = "^1.10.17"
flask = "^2.2.5"
gevent = "^24.2.1"
psycopg2 = "^2.9.9"
pygeofilter = {extras = ["backend-sqlalchemy"], version = "^0.2.4"}
gunicorn = "^23.0.0"
pygeoif = "^1.5.0"
jsonschema = "^4.23.0"
flask-cors = "^4.0.1"
httpx = "^0.27.0"
geomet = "^1.1.0"
geoalchemy2 = "^0.15.2"
[tool.poetry.group.dev.dependencies]
ruff = "^0.5.5"
pytest = "^8.1.1"
pytest-cov = "^5.0.0"
pytest-order = "^1.2.1"
pytest-sugar = "^1.0.0"
ipykernel = "^6.29.4"
mypy = "^1.9.0"
coverage = { extras = ["toml"], version = "^6.5.0" }
testcontainers = "^4.7.2"
ghp-import = "^2.1.0"
[tool.poetry.group.doc.dependencies]
sphinx = "^7.3.7"
sphinx-autodoc-typehints = "^2.1.0"
sphinx-rtd-theme = "^2.0.0"
sphinxcontrib-mermaid = "^0.9.2"
myst-parser = "^3.0.1"
# autodoc-pydantic = "^2.2.0"
nbsphinx = "^0.9.3"
[tool.ruff]
fix = true
line-length = 120
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint]
select = ["N", "D", "I", "E", "W", "S"]
extend-safe-fixes = ["D200"]
pydocstyle = { convention = "pep257" }
ignore = [
"S311",
"E501", # line too long
"D211", # no blank line before section
"D212", # no blank line after section
"D400", # first line should end with a period
"D401",
"D105", # missing docstring in magic method
"D107", # missing docstring in __init__
"N999"
]
[tool.ruff.lint.per-file-ignores]
# tests can do some things that are not desirable in production code
"tests/*" = [
"S101", # allowed to use asserts
]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
addopts = "--tb=short -p no:warnings"
markers = [
"order: sets the order of the tests",
"unittest: unit tests",
"integration: integration tests which have out-of-process dependencies",
]
[tool.coverage.report]
show_missing = true
[tool.mypy]
strict = false
pretty = true
show_column_numbers = true
show_error_context = true
ignore_missing_imports = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"