-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
108 lines (98 loc) · 2.49 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
[project]
name = "labgrid-qemu-sample"
version = "1.0.0"
description = "Labgrid QEMU Sample Code"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"pytest==8.3.3",
"ipdb==0.13.13",
"cryptography==43.0.1",
"labgrid",
"httpx>=0.28.1",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = ["I"]
extend-safe-fixes = ["I"]
# First iteration just enable a common set
select = [
#"ALL",
# pycodestyle
"E",
# pydocstyle
#"D",
# Pyflakes
"F",
# pyupgrade
"UP",
# flage8-annotations
"ANN",
# flake8-bugbear
"B",
# flake8-bandit
"S",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = [
# line-too-long (E501)#
# https://docs.astral.sh/ruff/rules/line-too-long/
"E501",
# Checks for packages that are missing an __init__.py file.
# https://docs.astral.sh/ruff/rules/implicit-namespace-package/
"INP001",
# Checks for undocumented public module definitions.
# https://docs.astral.sh/ruff/rules/undocumented-public-module
"D100",
# bad-quotes-inline-string (Q000)#
# https://docs.astral.sh/ruff/rules/bad-quotes-inline-string/
"Q000",
# too-many-arguments (PLR0913)
# https://docs.astral.sh/ruff/rules/too-many-arguments/
"PLR0913",
# missing-type-self (ANN101)# - DEPRECATED, hence ignored
# https://docs.astral.sh/ruff/rules/missing-type-self/
"ANN101",
# assert (S101)#
# https://docs.astral.sh/ruff/rules/assert/
# Reason: pytest uses assertions
"S101",
# subprocess-without-shell-equals-true (S603
# https://docs.astral.sh/ruff/rules/subprocess-without-shell-equals-true/
# Reason: Conflicts with S602 and using inside test
"S603",
]
[tool.ruff.format]
quote-style = "double"
[tool.pytest.ini_options]
minversion = "8.3"
addopts = "--strict-markers --pdbcls=IPython.terminal.debugger:TerminalPdb"
testpaths = [
"tests",
]
log_cli = true
log_cli_level = "INFO"
pythonpath = [
"util",
]
junit_suite_name = "Labgrid QEMU Sample"
junit_log_passing_tests = true
junit_logging = "all"
markers = [
"openvpn: Tests OpenVPN related functionality",
]
[tool.uv.sources]
labgrid = { git = "https://github.com/labgrid-project/labgrid", branch = "master" }
[dependency-groups]
dev = [
"pyright>=1.1.391",
"ruff>=0.6.8",
]
[tool.ruff.lint.flake8-pytest-style]
# Ignore missing '()' at marker without args.
# https://docs.astral.sh/ruff/settings/#lint_flake8-pytest-style_mark-parentheses
mark-parentheses = false