-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpyproject.toml
162 lines (150 loc) · 3.98 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
158
159
160
161
162
[tool.poetry]
name = "climate-assessment"
version = "0.1.4a0"
description = "Climate assessment of long-term emissions pathways: IPCC AR6 WGIII version"
authors = [
"Jarmo S. Kikstra <[email protected]>",
"Zebedee Nicholls <[email protected]>",
"Jared Lewis <[email protected]>",
"Christopher J. Smith <[email protected]>",
"Robin D. Lamboll <[email protected]>",
"Edward Byers <[email protected]>",
"Marit Sandstad <[email protected]>",
"Laura Wienpahl <[email protected]>",
"Philip Hackstock <[email protected]>",
]
readme = "README.rst"
packages = [
{include = "climate_assessment", from = "src"},
]
keywords = ["climate", "integrated assessment", "emissions", "temperature", "IPCC"]
license = "MIT License"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
]
homepage = "https://github.com/iiasa/climate-assessment"
[tool.poetry.dependencies]
python = ">=3.11,<3.12"
aneris_iamc = "==0.3.1"
fair = "==1.6.2"
ixmp4 = "==0.8.3"
joblib = "==1.3.2"
openscm-runner = "==0.12.1"
pandas = "==2.2.2"
pooch = "==1.8.0"
pyam-iamc = "==2.2.2"
pymagicc = "==2.1.5"
scmdata = "==0.17.0"
silicone = "==1.3.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.7.0"
pytest-cov = "^5.0.0"
[tool.poetry.group.tests.dependencies]
pytest = "^8.1.1"
[tool.poetry.group.docs.dependencies]
sphinx = "^7.2.6"
sphinx-rtd-theme = "^2.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"nightly: Slow-running nightly tests.",
"wg3: Tests for exact reproduction of WG3 database.",
]
addopts = [
"-m",
"not nightly and not wg3",
"--import-mode=importlib",
"--ignore=tests/test-data"
]
[tool.ruff]
src = ["src"]
target-version = "py39"
select = [
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # pyflakes
"I", # isort
"D", # pydocstyle
"PL", # pylint
"TRY", # tryceratops
"NPY", # numpy rules
"RUF", # ruff specifics
"UP", # pyupgrade
"S", # flake8-bandit
# pandas support via pandas-vet. In some cases we will want to disable
# this because it can lead to too many false positives.
"PD",
]
unfixable = [
"PD002", # Disable autofix for inplace as this often introduces bugs
]
ignore = [
"D200", # One-line docstring should fit on one line with quotes
"D400", # First line should end with a period
"D105", # Missing docstring in magic method
"UP007",
"PD011", # Ruff confused about APIs
# All below here should be reinstated at some point
"PLR0913",
"E501",
"PLW0129",
"RUF005",
"PD002",
"PLW2901",
"PD901",
"S324",
"PLR0915",
"PLR0912",
"TRY003",
"D401",
"D205",
"PD003",
"D404",
"D103",
"TRY200",
"D100",
"S113",
"PD101",
"D104",
"PLR5501",
"PD010",
"TRY300",
"PLR2004",
"RUF015",
"D414",
"D101",
"D102",
]
# Provide some leeway for long docstring, this is otherwise handled by black
line-length = 88
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.per-file-ignores]
"test*.py" = [
"D", # Documentation not needed in tests
"S101", # S101 Use of `assert` detected
"PLR2004" # Magic value used in comparison
]
"notebooks/*" = [
"D100", # Missing docstring at the top of file
"E402", # Module level import not at top of file
"S101", # Use of `assert` detected
]
"scripts/*" = [
"S101", # S101 Use of `assert` detected
]
[tool.ruff.isort]
known-first-party = ["src"]
[tool.ruff.pydocstyle]
convention = "numpy"