-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
176 lines (168 loc) · 4.18 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
[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.8"
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",
"pyjwt[crypto]",
"tabulate",
"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",
"pytest",
"pytest-asyncio ~= 0.21.2",
"pytest-cov",
"ruff",
]
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.isort]
profile = "black"
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# pycodestyle
"E", "W",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP",
# flake8-2020
"YTT",
# flake8-async
"ASYNC",
# flake8-bandit
"S",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-implicit-str-concat
"ISC",
# flake8-logging
"LOG",
# flake8-logging-format
"G",
# flake8-pie
"PIE",
# flake8-print
"T20",
# flake8-pytest-style
"PT",
# flake8-raise
"RSE",
# flake8-simplify
"SIM",
# flake8-unused-arguments
"ARG",
# flake8-use-pathlib
"PTH",
# Pylint
"PL",
# flynt
"FLY",
# refurb
"FURB",
# Ruff-specific rules
"RUF",
]
ignore = [
# "Async functions should not open files with blocking methods like open"
# -> doesn't seem to be a problem now, might revisit later
"ASYNC230",
# "Line too long"
# -> complains for long strings, rely on black
"E501",
# "for loop variable overwritten by assignment target"
"PLW2901",
# "open() should be replaced by Path.open()"
# -> just creating a Path object to open a file is overkill
"PTH123",
# "subprocess call: check for execution of untrusted input"
# -> false positives
"S603",
# "Use ternary operator instead of if-else-block"
# -> can make the code less readable
"SIM108",
# "Use a single with statement with multiple contexts instead of nested
# with statements"
# -> only useful with Python version >= 3.10, when you can break the
# statement into multiple lines
"SIM117",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
# "{name} imported but unused"
# -> modules are imported in __init__.py to re-export them
"F401",
]
"tests/**.py" = [
# "Magic value used in comparison"
# -> magic values are OK for tests
"PLR2004",
# "pytest.raises() block should contain a single simple statement"
# -> there are a few cases, that catch the exception raised in a context
# manager (util.background_task)
"PT012",
# "Use of assert detected"
# -> usage is expected in tests
"S101",
]