-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
81 lines (73 loc) · 1.48 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "impactlab-tools"
authors = [
{ name="Climate Impact Lab", email="[email protected]" },
]
description = "Python tools for Climate Impact Lab developers"
readme = "README.rst"
dynamic = ["version"]
requires-python = ">=3.7"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
]
dependencies = [
"numpy>=1.7",
"pandas>=0.15",
"pyyaml",
"scipy",
"xarray>=0.8",
]
[project.urls]
"Homepage" = "https://github.com/ClimateImpactLab/impactlab-tools"
"Bug Tracker" = "https://github.com/ClimateImpactLab/impactlab-tools/issues"
[project.optional-dependencies]
complete = ["impactlab-tools[viz,docs,test]"]
docs = [
"Sphinx",
"sphinx-rtd-theme",
]
test = [
"ruff",
"pytest>=3.0",
"pytest-cov>=2.0",
]
viz = [
"geopandas",
"matplotlib",
]
[tool.pytest.ini_options]
testpaths = [
"src",
"tests",
]
addopts = "--cov=impactlab_tools --doctest-modules"
[tool.hatch.version]
source = "vcs"
fallback-version = "999"
[tool.hatch.build.hooks.vcs]
version-file = "src/impactlab_tools/_version.py"
[tool.ruff]
exclude = [
".eggs",
"docs",
]
[tool.ruff.lint]
# E402: module level import not at top of file
ignore = [
"E402",
]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# Pyupgrade
"UP",
]