-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (77 loc) · 2.41 KB
/
pyproject.toml
File metadata and controls
88 lines (77 loc) · 2.41 KB
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "brother"
version = "0.0.0"
license = "Apache-2.0"
description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP."
readme = "README.md"
authors = [{name = "Maciej Bieniek"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Typing :: Typed",
]
requires-python = ">=3.13"
dependencies = [
"dacite>=1.7.0",
"pysnmp>=7.1.22"
]
[dependency-groups]
dev = [
"prek==0.3.4",
"ruff==0.15.5",
"ty==0.0.21",
]
test = [
"freezegun==1.5.5",
"pytest-asyncio==1.3.0",
"pytest-cov==7.0.0",
"pytest-error-for-skips==2.0.2",
"pytest-timeout==2.4.0",
"pytest==9.0.2",
"syrupy==5.1.0",
]
[project.urls]
Homepage = "https://github.com/bieniu/brother"
[tool.setuptools.packages.find]
include = ["brother*"]
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "session"
[tool.ruff]
target-version = "py313"
lint.select = ["ALL"]
lint.ignore = [
"COM812", # Trailing comma missing
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"EM101", # Exception must not use a string literal, assign to variable first
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PTH123", # `open()` should be replaced by `Path.open()`
"TC002", # Move third-party import into a type-checking block
"TC003", # Move standard library import into a type-checking block
"TC006", # Add quotes to type expression in `typing.cast()`
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"ASYNC230", # Async functions should not open files with blocking methods like `open`
"PLR2004", # Magic value used in comparison
"S101", # Use of `assert` detected
"SLF001", # Private member accessed
]
"example.py" = [
"T201", # `print` found
"PLR2004", # Magic value used in comparison
]
[tool.ruff.lint.mccabe]
max-complexity = 25
[tool.ty.environment]
python-version = "3.13"