forked from os-climate/physrisk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
157 lines (138 loc) · 3.3 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[project]
name = "physrisk-lib"
version = "0.25.0"
description = "OS-Climate Physical Risk Library"
authors = [
{name = "Joe Moorhouse",email = "[email protected]"},
]
requires-python = ">=3.8,<3.11"
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["Physical", "Climate", "Risk", "Finance"]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Topic :: Office/Business :: Financial",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
dependencies = [
"affine>=2.4.0",
"dependency-injector>=4.41.0",
"numba>=0.56.4",
"numpy>=1.22.0",
"pint",
"pillow>=10.2.0",
"pydantic>=2.4.2",
"pyproj>=3.5.0",
"python-dotenv>=0.19.2",
"requests>=2.27.1",
"scipy>=1.7.3",
"shapely>=2.0.1",
"s3fs>=2022.1.0",
"zarr>=2.10.3"
]
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
include = ["physrisk*"]
[tool.pdm.dev-dependencies]
test = [
"pdm[pytest]",
"pytest",
"pytest-cov"
]
docs = [
"sphinx-toolbox",
"sphinx-design",
"nbsphinx",
"pydata-sphinx-theme"
]
lint = [
"isort",
"black",
"pyproject-flake8",
"flake8",
"mypy",
"pre-commit",
"tox"
]
"black[jupyter]" = []
pandas = []
dev = [
"pandas>=2.0.3",
"geopandas>=0.13.2",
]
[tool.pdm.scripts]
pre_release = "scripts/dev-versioning.sh"
release = "scripts/release-versioning.sh"
test = "pytest"
tox = "tox"
docs = { shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview" }
lint = "pre-commit run --all-files"
complete = { call = "tasks.complete:main", help = "Create autocomplete files for bash and fish" }
[project.urls]
Homepage = "https://github.com/os-climate/physrisk"
Repository = "https://github.com/os-climate/physrisk"
Downloads = "https://github.com/os-climate/physrisk/releases"
"Bug Tracker" = "https://github.com/os-climate/physrisk/issues"
Documentation = "https://github.com/os-climate/physrisk/tree/main/docs"
"Source Code" = "https://github.com/os-climate/physrisk"
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "-v"
#addopts = "--cov --cov-report html --cov-report term-missing --cov-fail-under 95"
[metadata]
license-files = ["LICENSE"]
[tool.mypy]
warn_unreachable = true
ignore_missing_imports = true
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
[tool.coverage.run]
source = "src"
omit = "tests/*"
relative_files = true
[tool.yapf]
blank_line_before_nested_class_or_def = true
column_limit = 88
[tool.black]
line-length = 120
exclude = '''
/(
\.git
| \.tox
| \venv
| \.venv
| \*.env
| \build
| \dist
)/
'''
[tool.flake8]
max-line-length = "120"
extend-ignore = [
"E501",
]