-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (85 loc) · 2.17 KB
/
pyproject.toml
File metadata and controls
96 lines (85 loc) · 2.17 KB
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
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "dataretrieval"
description = "Discover and retrieve water data from U.S. federal hydrologic web services."
readme = "README.md"
requires-python = ">=3.8"
keywords = ["USGS", "water data"]
license = "CC0-1.0"
license-files = ["LICENSE.md"]
authors = [
{name = "Timothy Hodson", email = "thodson@usgs.gov"},
]
maintainers = [
{name = "Elise Hinman", email = "ehinman@usgs.gov"},
]
classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
"requests",
"pandas>=2.0.0,<4.0.0",
]
dynamic = ["version"]
[tool.setuptools]
packages = ["dataretrieval", "dataretrieval.codes"]
[tool.setuptools.package-data]
dataretrieval = ["py.typed"]
[project.optional-dependencies]
test = [
"pytest > 5.0.0",
"pytest-cov[all]",
"coverage",
"requests-mock",
"ruff",
]
doc = [
"docutils<0.22",
"sphinx",
"sphinx-rtd-theme",
"nbsphinx",
"nbsphinx_link",
"ipython",
"ipykernel",
"matplotlib",
"folium>=0.12"
]
nldi = [
'geopandas>=0.10'
]
[project.urls]
homepage = "https://github.com/DOI-USGS/dataretrieval-python"
documentation = "https://doi-usgs.github.io/dataretrieval-python/"
repository = "https://github.com/DOI-USGS/dataretrieval-python.git"
[tool.setuptools_scm]
write_to = "dataretrieval/_version.py"
[tool.ruff]
target-version = "py38"
extend-exclude = ["demos"]
[tool.ruff.lint]
preview = true
# Select rules: Pyflakes(F), pycodestyle(E,W), isort(I), pyupgrade(UP),
# flake8-bugbear(B), flake8-quotes(Q), flake8-simplify(SIM), flake8-tidy-imports(TID)
select = [
"F", "E", "W", "I", "UP", "B", "Q", "SIM", "TID",
"C90", # mccabe
"E501", # line-length
]
ignore = [
"SIM105", # Use `contextlib.suppress(...)` instead of `try-except-pass`
"SIM117", # Use a single `with` statement with multiple contexts
]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["SIM108"]
"**/__init__.py" = ["F403"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = 72