@@ -5,29 +5,29 @@ name = "physrisk-lib"
55version = " 1.0.12"
66description = " OS-Climate Physical Risk Library"
77authors = [
8- {name = " Joe Moorhouse" ,email = " 5102656+joemoorhouse@users.noreply.github.com" },
8+ { name = " Joe Moorhouse" , email = " 5102656+joemoorhouse@users.noreply.github.com" },
99]
10- requires-python = " >=3.9 "
10+ requires-python = " >=3.10 "
1111readme = " README.md"
12- license = {file = " LICENSE" }
12+ license = { file = " LICENSE" }
1313keywords = [" Physical" , " Climate" , " Risk" , " Finance" ]
1414
1515classifiers = [
16- " Intended Audience :: Developers" ,
17- " Intended Audience :: Science/Research" ,
18- " License :: OSI Approved :: Apache Software License" ,
19- " Operating System :: MacOS" ,
20- " Operating System :: Microsoft :: Windows" ,
21- " Operating System :: Unix" ,
22- " Programming Language :: Python" ,
23- " Programming Language :: Python :: 3" ,
24- " Programming Language :: Python :: 3 :: Only" ,
25- " Programming Language :: Python :: 3.11 " ,
26- " Programming Language :: Python :: 3.10 " ,
27- " Programming Language :: Python :: 3.9 " ,
28- " Topic :: Office/Business :: Financial" ,
29- " Topic :: Scientific/Engineering" ,
30- " Topic :: Software Development" ,
16+ " Intended Audience :: Developers" ,
17+ " Intended Audience :: Science/Research" ,
18+ " License :: OSI Approved :: Apache Software License" ,
19+ " Operating System :: MacOS" ,
20+ " Operating System :: Microsoft :: Windows" ,
21+ " Operating System :: Unix" ,
22+ " Programming Language :: Python" ,
23+ " Programming Language :: Python :: 3" ,
24+ " Programming Language :: Python :: 3 :: Only" ,
25+ " Programming Language :: Python :: 3.12 " ,
26+ " Programming Language :: Python :: 3.11 " ,
27+ " Programming Language :: Python :: 3.10 " ,
28+ " Topic :: Office/Business :: Financial" ,
29+ " Topic :: Scientific/Engineering" ,
30+ " Topic :: Software Development" ,
3131]
3232
3333dependencies = [
@@ -59,11 +59,7 @@ Documentation = "https://github.com/os-climate/physrisk/tree/main/docs"
5959"Source Code" = " https://github.com/os-climate/physrisk"
6060
6161[build-system ]
62- requires = [
63- " setuptools>=42" ,
64- " wheel" ,
65- " pdm"
66- ]
62+ requires = [" setuptools>=42" , " wheel" , " pdm" ]
6763build-backend = " setuptools.build_meta"
6864
6965[tool .setuptools ]
@@ -80,16 +76,11 @@ physrisk = [
8076 " data/static/*.json" ,
8177 " data/static/example_portfolios/*.json" ,
8278 " data/static/hazard/*.json" ,
83- " data/static/vulnerability/*.json"
79+ " data/static/vulnerability/*.json" ,
8480]
8581
8682[tool .pdm .dev-dependencies ]
87- test = [
88- " pdm[pytest]" ,
89- " pytest" ,
90- " pytest-cov" ,
91- " openpyxl>=3.1.5" ,
92- ]
83+ test = [" pdm[pytest]" , " pytest" , " pytest-cov" , " openpyxl>=3.1.5" ]
9384doc = [
9485 " numpydoc" ,
9586 " nbsphinx" ,
@@ -108,12 +99,7 @@ doc = [
10899 " graphviz" ,
109100 " plotly>=5.24.1" ,
110101]
111- dev = [
112- " mypy" ,
113- " pre-commit" ,
114- " ruff" ,
115- " tox"
116- ]
102+ dev = [" mypy" , " pre-commit" , " ruff" , " tox" ]
117103
118104[tool .pdm .scripts ]
119105pre_release = " scripts/dev-versioning.sh"
@@ -125,7 +111,7 @@ docs = { shell = "cd docs && make html", help = "Start the dev server for doc pr
125111open_docs = { shell = " open ./docs/_build/html/index.html" , help = " Start the dev server for doc preview" }
126112lint = " pre-commit run --all-files"
127113complete = { call = " tasks.complete:main" , help = " Create autocomplete files for bash and fish" }
128- all = {composite = [" pytest" , " lint" ]}
114+ all = { composite = [" pytest" , " lint" ] }
129115
130116[tool .pytest .ini_options ]
131117testpaths = " tests"
@@ -152,13 +138,13 @@ skip_empty = true
152138ignore_errors = true
153139show_missing = true
154140exclude_lines = [
155- " pragma: no cover" ,
156- " def __repr__" ,
157- " if self.debug:" ,
158- " raise NotImplementedError" ,
159- " if __name__ == .__main__.:" ,
160- " pass" ,
161- " raise ImportError" ,
141+ " pragma: no cover" ,
142+ " def __repr__" ,
143+ " if self.debug:" ,
144+ " raise NotImplementedError" ,
145+ " if __name__ == .__main__.:" ,
146+ " pass" ,
147+ " raise ImportError" ,
162148]
163149
164150[tool .coverage .html ]
@@ -198,14 +184,17 @@ exclude = [
198184[tool .ruff .lint ]
199185extend-fixable = [
200186 # Instead of trailing-whitespace
201- " W291" , " W293"
202- ]
187+ " W291" ,
188+ " W293" ,
189+ ]
203190
204191extend-select = [
205192 # Instead of pydocstyle
206193 " D" ,
207194 # Instead of flake8
208- " E" , " F" ," B" ,
195+ " E" ,
196+ " F" ,
197+ " B" ,
209198 # Instead of pep8-naming
210199 " N" ,
211200 # Instead of flake8-debugger or debug-statements
@@ -220,7 +209,11 @@ ignore = [
220209 " D213" ,
221210
222211 # Ignore this rules so that precommit passes. Uncomment to start fixing them
223- " B006" , " B008" , " B904" , " B012" , " B024" ,
212+ " B006" ,
213+ " B008" ,
214+ " B904" ,
215+ " B012" ,
216+ " B024" ,
224217 " D" ,
225218]
226219
0 commit comments