forked from iiasa/message_ix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
136 lines (123 loc) · 3.42 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
[build-system]
requires = ["build", "setuptools-scm"]
[project]
dynamic = ["version"]
name = "message_ix"
description = "The MESSAGEix integrated assessment model framework"
authors = [{ name = "IIASA Energy, Climate, and Environment (ECE) Program" }]
maintainers = [
{ name = "Paul Natsuo Kishimoto", email = "[email protected]" },
{ name = "Fridolin Glatter", email = "[email protected]" },
]
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: R",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
]
requires-python = ">=3.9"
dependencies = [
"click",
"ixmp >= 3.9.0",
"genno[pyam] >= 1.20",
"numpy",
"pandas >= 1.2",
"PyYAML",
"scipy",
]
[project.urls]
homepage = "https://github.com/iiasa/message_ix"
repository = "https://github.com/iiasa/message_ix"
documentation = "https://docs.messageix.org"
[project.optional-dependencies]
docs = [
"genno >= 1.26", # For sphinx extensions; see doc/conf.py
"GitPython",
"message_ix[report]",
"numpydoc",
"sphinx >= 4.0",
"sphinx_rtd_theme",
"sphinxcontrib-bibtex",
]
tutorial = ["jupyter", "matplotlib", "message_ix[report]"]
report = ["ixmp[report]"]
tests = [
"asyncssh",
"message_ix[docs,tutorial]",
"pint",
"pyam-iamc >= 0.6",
"pytest >= 5",
"pytest-cov",
"pytest-rerunfailures",
"pytest-xdist",
"requests",
]
[project.scripts]
message-ix = "message_ix.cli:main"
[tool.coverage.report]
exclude_also = [
# Imports only used by type checkers
"if TYPE_CHECKING:",
"if __name__ == '__main__':",
]
[tool.coverage.run]
omit = [
"message_ix/tests/test_nightly.py",
"message_ix/testing/nightly.py",
]
[tool.mypy]
exclude = [
"build/",
"doc/",
]
# TODO Remove this once it has become default with mypy 2.0:
local_partial_types = true
[[tool.mypy.overrides]]
# Packages/modules for which no type hints are available.
module = [
"pyam",
"scipy.*",
# Indirectly via ixmp; this should be a subset of the list in ixmp's pyproject.toml
"jpype",
"memory_profiler",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
# Disable faulthandler plugin on Windows to prevent spurious console noise
addopts = """
--cov=message_ix --cov-report=
-m "not nightly and not rmessageix"
-p no:faulthandler"""
markers = [
"nightly: Slow-running nightly tests of particular scenarios.",
"rmessageix: test of the message_ix R interface.",
"tutorial: Tests of the tutorial Jupyter notebooks",
]
[tool.ruff]
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = ["C9", "E", "F", "I", "W"]
# FIXME the following exceed this limit
# - .testing.make_austria(): 18
# - .tests.test_feature_duration_time.model_generator(): 14
# - .tools.add_year.add_year_set(): 14
# - .tools.add_year.add_year(): 17
# - .tools.add_year.interpolate_1d(): 19
# - .tools.add_year.interpolate_2d(): 38
mccabe.max-complexity = 13
[tool.setuptools.packages]
find = {}
[tool.setuptools_scm]