-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
153 lines (126 loc) · 3.14 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "forwarder"
version = "2.1.dev0"
urls = {homepage="https://github.com/ess-dmsc/forwarder", repository="https://github.com/ess-dmsc/forwarder"}
license = { file="LICENSE" }
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"caproto",
"p4p",
"confluent_kafka",
"graphyte",
"numpy >= 1.21",
"ConfigArgParse",
"ess-streaming-data-types",
"tomli",
"prometheus-client",
]
[project.optional-dependencies]
dev = [
"pip-tools",
"mypy",
"black",
"flake8",
"pytest",
"isort",
"pre-commit",
"pytest-cov",
"tox",
"wheel",
"Flake8-pyproject",
]
[project.scripts]
forwarder-launch = "forwarder.scripts.run:main"
[tool.setuptools.packages.find]
include=["forwarder"]
[tool.black]
exclude = '/(venv*|.tox)'
[tool.isort]
profile = "black"
[tool.flake8]
ignore = ["E501", "E203", "E402", "W503", "Q000", "W293"]
# E501 & E203: Formatting handled by Black
# E402 complains about imports not being at the top
# W503 complains about splitting if across lines which conflicts with Black
# Q000 complains about using "" and not '' which conflicts with Black
# W293 blank lines with whitespace, conflicts with Black in doc comments
exclude = ["f142_logdata", "README.md"]
[tool.pytest.ini_options]
markers = [
"epics_protocol: (EpicsProtocol) The protocol used for the test",
"schema: (str) The streaming-data-type of the test",
"serialiser_update_period_ms: (int) Update period (ms) for any created Serialiser",
]
testpaths = [
"tests",
]
addopts = "-s"
junit_family = "xunit2"
[tool.coverage.run]
branch = true
source = ["forwarder"]
[tool.coverage.report]
show_missing = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38, py39, py310
isolated_build = true
skipsdist=true
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
python -m pytest {posargs}
"""
[tool.mypy]
python_version = 3.8
check_untyped_defs = true
plugins = ["numpy.typing.mypy_plugin"]
[[tool.mypy.overrides]]
module = "confluent_kafka.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "streaming_data_types.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "numpy.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "caproto.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pytest.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "p4p.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "configargparse.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "setuptools.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "flatbuffers.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "integration_tests.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "forwarder.repeat_timer.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "contract_tests.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "integration_tests.smoke_tests.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "attr.*"
ignore_errors = true