-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
179 lines (164 loc) · 3.64 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "mokka"
readme = "README.md"
license = "Apache-2.0"
authors = [
"Andrej Rode <[email protected]>",
"Shrinivas Chimmalgi <[email protected]>",
"Benedikt Geiger <[email protected]>",
"Laurent Schmalen <[email protected]>",
]
maintainers = [
"Andrej Rode <[email protected]>",
"Shrinivas Chimmalgi <[email protected]>",
"Benedikt Geiger <[email protected]>",
]
version = "1.0.1"
description = "A machine learning toolbox for communications engineering"
keywords = ["communications engineering", "machine learning"]
# dynamic = ["version", "description"]
[tool.poetry.dependencies]
python = "^3.10"
attrs = "^23.2.0"
numpy = "^1.26.4"
torch = "^2.5.1"
torchaudio = "^2.5.1"
matplotlib = "^3.9.2"
scipy = "^1.13.1"
pyqtgraph = "^0.13.7"
jaxtyping = "^0.2.36"
[tool.poetry.group.dev.dependencies]
pre-commit = "*"
pytest = "*"
pytest-coverage = "*"
black = "*"
flake8 = "*"
pylint = "*"
python-lsp-server = {version = "*", extras = ["all"]}
pyls-flake8 = "*"
python-lsp-black = "*"
sphinx = "*"
sphinx-pyproject = "*"
sphinx_rtd_theme = "*"
tox = "*"
tox-gh-actions = "*"
[tool.poetry.extras]
tf = [
"sionna"
]
remotelog = [
"wandb",
]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
filterwarnings = [
"ignore",
"default:::mokka",
]
[tool.pydocstyle]
add_select = "D417,D419"
[tool.sphinx-pyproject]
language = "en"
package_root = "mokka"
extensions = [
"sphinx.ext.autodoc",
"sphinx_rtd_theme",
"sphinx.ext.mathjax",
]
templates_path = [ "_templates", ]
html_static_path = [ "_static", ]
source_suffix = ".rst"
master_doc = "index"
html_theme = "sphinx_rtd_theme"
autodoc_exclude_members = [
"__dict__",
"__class__",
"__dir__",
"__weakref__",
"__module__",
"__annotations__",
"__orig_bases__",
"__parameters__",
"__subclasshook__",
"__init_subclass__",
"__attrs_attrs__",
"__init__",
"__new__",
"__getnewargs__",
"__abstractmethods__",
"__hash__",
]
[tool.tox]
legacy_tox_ini = """
[tox]
description = list of environments against which tox runs the tests
envlist =
flake8
black
pydocstyle
3.10
3.11
3.12
# See https://tox.readthedocs.io/en/latest/example/package.html#flit
isolated_build = True
isolated_build_env = build
skip_missing_interpreters = True
py_version =
3.10, flake8, black, pydocstyle: 3.10
3.11: 3.11
3.12: 3.12
[gh-actions]
python =
3.10: flake8, black, pydocstyle, py310
3.11: 3.11
3.12: 3.12
[testenv]
# install pytest in the virtualenv where commands will be executed
allowlist_externals =
poetry
bash
setenv =
PYTHONUNBUFFERED = yes
PIP_PREFER_BINARY = 1
passenv = *
extras =
torch
dev
# This is already the default, but we include it here
# to remind ourselves that usedevelop is incompatible with flit,
# see https://tox.readthedocs.io/en/latest/config.html#conf-usedevelop
usedevelop = False
commands_pre =
poetry env use {[tox]py_version}
poetry install --with=dev
command =
poetry run pytest {env:PYTEST_MARKERS:} {env:PYTEST_EXTRA_ARGS:} {posargs:-vv}
[testenv:flake8]
description = this environments checks for flake8 and black
deps =
black==22.3.0
flake8
build
skip_install = true
commands =
flake8 src tests
[testenv:pydocstyle]
description = this environments checks formatting with pydocstyle
deps =
pydocstyle
skip_install = true
commands =
pydocstyle --count src/
[testenv:black]
description = reformats the code using black
deps =
black==22.3.0
skip_install = true
commands =
black src tests
"""