-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
145 lines (127 loc) · 3.67 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
[project]
name = "omotes-sdk-python"
requires-python = ">=3.8.1"
dynamic = ["version"]
authors = [
{ name = "Sebastiaan la Fleur", email = "[email protected]" },
{ name = "Mark Vrijlandt", email = "[email protected]" },
]
description = "Python implementation of the OMOTES SDK through jobs which may be submitted, receive status updates for submitted jobs or cancel submitted jobs."
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Information Technology",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"aio-pika ~= 9.4.2",
"omotes-sdk-protocol ~= 0.1.13",
"pyesdl ~= 24.2",
"pamqp ~= 3.3.0",
"celery ~= 5.3.6",
"typing-extensions ~= 4.11.0",
"streamcapture ~= 1.2.4",
]
[project.optional-dependencies]
dev = [
"pip-tools~=7.3.0",
"setuptools ~= 69.0.3",
"black ~= 22.1.0",
"flake8 ~= 6.1.0",
"Flake8-pyproject ~= 1.2.3",
"flake8-docstrings ~= 1.7.0",
"flake8-quotes ~= 3.3.2",
"pytest ~=7.3.1",
"pytest-cov ~=4.0.0",
"mypy ~= 1.8.0",
"isort ~= 5.13.2",
"build ~= 1.0.3",
"mypy-protobuf ~= 3.5.0",
"setuptools-git-versioning < 2",
]
[project.urls]
homepage = "https://www.nwn.nu"
documentation = "https://readthedocs.org"
repository = "https://github.com/Nieuwe-Warmte-Nu/omotes-sdk-python"
changelog = "https://github.com/Nieuwe-Warmte-Nu/omotes-sdk-python/blob/main/CHANGELOG.md"
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools ~= 69.0.3",
"wheel ~= 0.40.0",
"setuptools-git-versioning<2",
]
[tool.setuptools.package-data]
"omotes_sdk" = ["py.typed"]
[tool.setuptools-git-versioning]
enabled = true
[tool.pytest.ini_options]
addopts = "--cov=omotes_sdk --cov-report html --cov-report term-missing --cov-fail-under 62"
[tool.coverage.run]
source = ["src"]
omit = [
# omit generated code from protobuf
"*_pb2.py",
]
[tool.flake8]
exclude = [
'.venv/*',
'venv/*',
'doc/*',
'src/omotes_sdk/internal/orchestrator_worker_events/messages/*'
]
ignore = [
'Q000', # Remove bad quotes
'D401', # Docstring First line should be imperative
'E203', # Space before colon (not PEP-8 compliant, and conflicts with black)
'C408', # Suggestion to use dict() over {}
'W503', # Starting lines with operators.
'D104', # Missing docstring in public package
'D100' # Missing docstring in public module
]
per-file-ignores = [
'__init__.py:F401',
'./unit_test/*:D100,D101,D102,D103'
]
max-line-length = 100
count = true
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
exclude = ['.venv/*', 'venv/*', 'doc/*', 'ci/*']
# mypy per-module options:
[[tool.mypy.overrides]]
module = "unit_test.*"
check_untyped_defs = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "celery.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "kombu.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "billiard.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "streamcapture.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "esdl.*"
ignore_missing_imports = true