-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
128 lines (113 loc) · 2.88 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
[project]
name = "netty-snmp"
version = "0.1.3"
description = "Network Device information Discovery via SNMP"
authors = [
{ name = "jeffry", email = "wangxin.jeffry@gmail.com" }
]
keywords = ["snmp", "netmiko", "lldp", "network-discovery", "network-device", "network-automation", "textfsm"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Networking",
"Topic :: System :: Networking :: Monitoring",
"Operating System :: POSIX :: Linux",
"Typing :: Typed",
]
dependencies = [
"tcppinglib>=2.0.3",
"ezsnmp>=1.0.0rc3",
"icmplib>=3.0.4",
]
readme = "README.md"
requires-python = ">= 3.11"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=8.3.1",
"pre-commit>=3.7.1",
"pytest-cov>=5.0.0",
"pytest-sugar>=1.0.0",
"pytest-tldr>=0.2.5",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["netty_snmp"]
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D",
"G002",
"DTZ003",
"ANN401",
"ANN101",
"ANN102",
"EM101",
"PD901",
"COM812",
"ISC001",
"FBT",
"A003",
"PLR0913",
"G004",
"E501",
"TRY003",
"EM102"
]
fixable = ["ALL"]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = ["S101", "ANN201", "PLR2004", "ANN001"]
"*exceptions.py" = ["ARG001"]
"__init__.py" = ["F403", "F401"]
"consts.py" = ["N816"]
[tool.pytest.ini_options]
addopts = "--cov-report term --cov-report xml:coverage.xml --cov-config=.coveragerc -W ignore --cov=netty_snmp -v"
xfail_strict = true
asyncio_mode = "auto"
markers = ["pytest.mark.asyncio"]
testpaths = ["tests"]
[tool.coverage.report]
skip_empty = true
skip_covered = true
precision = 2
omit = ["*/__init__.py", "*/consts.py"]
exclude_lines = [
"pragma: no cover",
"raise NotImplentmentError",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING",
"@overload",
"@typing.overload",
"assert_never",
"typing.assert_never",
]
[tool.coverage.run]
concurrency = ["thread"]
[tool.mypy]
explicit_package_bases = true
mypy_path = ["netty_snmp"]
strict = true
warn_unused_ignores = false
[tool.pyright]
include = ["netty", "tests", "examples"]
reportIncompatibleVariableOverride = false
pythonVersion = "3.12"