-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
154 lines (138 loc) · 4.06 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
# SPDX-FileCopyrightText: ASSUME Developers
#
# SPDX-License-Identifier: AGPL-3.0-or-later
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "assume-framework"
version = "0.5.0"
description = "ASSUME - Agent-Based Electricity Markets Simulation Toolbox"
authors = [{ name = "ASSUME Developers", email = "[email protected]"}]
license = {text = "AGPL-3.0-or-later"}
readme = "README.md"
keywords = ["agent based simulation", "energy market", "reinforcement learning", "market simulation", "simulation"]
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Framework :: AsyncIO",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10"
dependencies = [
"argcomplete >=3.1.4",
"nest-asyncio >=1.5.6",
"mango-agents >=2.1.3",
"numpy >=1.26.4",
"tqdm >=4.64.1",
"python-dateutil >=2.8.2",
"sqlalchemy >=2.0.9",
"pandas >=2.0.0",
"psycopg2-binary >=2.9.5",
"pyyaml >=6.0",
"pyyaml-include >=2.2a",
"pyomo >=6.8.0",
"highspy",
]
[project.optional-dependencies]
learning = [
"torch >=2.0.1",
]
network = [
"pypsa <=0.30.3",
]
oeds = [
"demandlib >=0.1.9",
# see https://github.com/vacanza/holidays/discussions/1800
"holidays <1.0",
"pvlib >=0.10.2",
"windpowerlib >=0.2.1",
]
test = [
"ruff >=0.4.9",
"mypy >=1.1.1",
"matplotlib >=3.7.2",
"pytest >=7.2.2",
"pytest-cov >=4.1.0",
"pytest-asyncio >=0.21.1",
]
all = [
"assume-framework[oeds, network, learning]",
]
[project.urls]
Homepage = "https://assume-project.de/"
Repository = "https://github.com/assume-framework/assume"
Documentation = "https://assume.readthedocs.io"
Issues = "https://github.com/assume-framework/assume/issues"
Changelog = "https://assume.readthedocs.io/en/latest/release_notes.html"
[project.scripts]
assume = "assume_cli.cli:cli"
[tool.setuptools]
packages = {find = {}}
[tool.ruff]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "G", "PIE"]
ignore = ["E501", "G004", "E731"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"I001", # allow unsorted imports in __init__.py
"F401", # allow unused imports in __init__.py
]
"tests/*" = [
"S101", # allow assert statements for pytest
"ARG", # allow unused arguments for pytest fixtures
"F841", # allow unused local variables
]
"examples/notebooks/*" = [
"E402", # allow imports the middle of notebooks
"E999", # allow no expressions
"F841", # allow unused local variables
"F811", # allow import redeclaration
]
[tool.pytest]
testpaths = "tests"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"ignore:Call to deprecated create function FieldDescriptor",
"ignore:Call to deprecated create function Descriptor",
"ignore:Call to deprecated create function FileDescriptor",
"ignore:Call to deprecated create function EnumValueDescriptor",
"ignore:Call to deprecated create function EnumDescriptor",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"require_learning",
]
addopts = "--ignore=assume-db"
[tool.coverage.run]
omit = ["tests/*"]
source = ["assume"]
[tool.coverage.report]
# https://stackoverflow.com/a/5850364
exclude_lines = ["if __name__ == .__main__.:"]
[tool.mypy]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
# output
show_error_context = true
show_column_numbers = true
show_error_codes = true
pretty = true
ignore_missing_imports = true
[tool.codespell]
quiet-level = 3
skip = "*.csv, *.html, *.json, *.orig, *.svg, ./docs/build"
ignore-words-list = "DED,esy,flexable,Meger,ore"