-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
123 lines (111 loc) · 2.87 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
[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm>=6.2"]
build-backend = "setuptools.build_meta"
[project]
authors = [
{name = "Hawkes Research Group @ Chemical Engineering, Imperial College London", email = "[email protected]"},
{name = "Imperial College London RSE Team", email = "[email protected]"}
]
name = "MUSE_OS"
description = "Energy System Model"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">= 3.9, <3.14"
keywords = ["energy", "modelling"]
classifiers = [
"Development Status :: 4 - Beta",
"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",
"Intended Audience :: Science/Research",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
]
dependencies = [
"numpy>=2.0",
"scipy>=1.13",
"pandas>=2.2",
"xarray>=2024.6,<=2024.11",
"bottleneck>=1.4",
"coloredlogs",
"toml",
"xlrd",
"mypy-extensions",
"pypubsub",
"tomlkit"
]
dynamic = ["version"]
[project.optional-dependencies]
all = ["MUSE_OS[dev,doc,excel]"]
dev = [
"pytest>4.0.2",
"IPython",
"jupyter",
"nbconvert",
"nbformat",
"mypy",
"pytest-xdist",
"pyinstaller",
"pre-commit"
]
doc = [
"sphinx",
"sphinx-rtd-theme",
"ipykernel",
"nbsphinx",
"myst-parser",
"sphinxcontrib-bibtex",
"ipython",
"pandoc",
"seaborn"
]
excel = ["openpyxl"]
gui = ["gooey"]
[project.urls]
Homepage = "https://www.imperial.ac.uk/muse-energy/what-is-muse-/"
[project.scripts]
muse = "muse.__main__:run"
muse_gui = "muse_gui.__main__:run"
[tool.setuptools]
license-files = ["LICENSE"]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["*"]
namespaces = true
[tool.setuptools_scm]
[tool.pytest.ini_options]
testpaths = ["tests", "src/muse"]
addopts = "--doctest-modules -rfE -n auto --dist=loadscope"
markers = [
"sgidata: test that require legacy data",
"legacy: test that require legacy modules",
"regression: a regression test, including examples and tutorials",
"notebook: a test which consist in running a jupyter notebook",
"example: a test which consist in running an example",
"tutorial: a test which consist in running a tutorial"
]
[tool.mypy]
ignore_missing_imports = true
strict_optional = true
files = ["src/**/*.py", "tests/**/*.py"]
[[tool.mypy.overrides]]
module = ["setup"]
ignore_errors = true
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = [
"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"UP", # Pyupgrade
"RUF" # Ruff's own checks
]
ignore = [
"D1" # missing docstring checks
]
pydocstyle.convention = "google"