/
pyproject.toml
111 lines (103 loc) · 2.79 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
[project]
# For more information on how to specify metadata, see
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
name = "not-my-board"
description = "Tool to setup, manage and use a board farm "
readme = "README.md"
requires-python = ">=3.7"
license = {file = "LICENSE.txt"}
authors = [
{name = "Simon Holesch", email = "simon@holesch.de"},
]
keywords = ["board-farm", "embedded", "testing"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Testing",
]
dependencies = [
"asgineer",
"async-timeout; python_version < '3.11'",
"h11",
"pydantic ~= 1.10",
"tomli; python_version < '3.11'",
"typing_extensions; python_version < '3.9'",
"uvicorn",
"websockets",
]
dynamic = ["version"]
[project.urls]
Documentation = "http://not-my-board.readthedocs.io"
Issues = "https://github.com/holesch/not-my-board/issues"
Source = "https://github.com/holesch/not-my-board"
[project.scripts]
not-my-board = "not_my_board.cli:main"
[project.optional-dependencies]
test = [
"black",
"codespell",
"isort",
"mypy",
"pylint",
"pylint-pytest",
"pytest",
"pytest-asyncio == 0.21.1",
"pytest-cov",
]
docs = [
"furo",
"myst-parser",
"sphinx",
"sphinx-copybutton",
"sphinxext-opengraph",
]
[build-system]
build-backend = "mesonpy"
requires = ["meson-python"]
[tool.pytest.ini_options]
addopts = ["--quiet"]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.pylint.MASTER]
load-plugins = "pylint_pytest"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"attribute-defined-outside-init",
"broad-exception-caught",
"fixme",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-else-raise",
"no-else-return",
"too-few-public-methods",
"too-many-arguments",
"too-many-instance-attributes",
"unspecified-encoding",
]
# allow short names
variable-rgx = "^_{,2}[a-z][a-z0-9_]{,30}$"
argument-rgx = "^_{,2}[a-z][a-z0-9_]{,30}$"
attr-rgx = "^_{,2}[a-z][a-z0-9_]{,30}$"
# allow any length for functions (e.g. test function names can be quite
# long)
function-rgx = "^_{,2}[a-z][a-z0-9_]*$"
# pylint doesn't support lazy_import()
generated-members = [
"websockets",
"pydantic",
"ImportRequest",
"ImportReply",
]
[tool.isort]
profile = "black"