-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
98 lines (82 loc) · 2.48 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "netbox-validity"
version = "3.0.5"
description = "NetBox plugin for network devices validation"
authors = [
{name = "Anton Miasnikov", email = "[email protected]"},
]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: POSIX :: Linux",
"Framework :: Django",
"Topic :: System :: Networking",
"Topic :: Internet",
]
requires-python = ">=3.10"
dynamic = ["dependencies", "optional-dependencies"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[tool.setuptools.packages.find]
exclude = ["validity.tests*"]
include = ["validity*"]
[tool.setuptools.package-data]
validity = ["*.html"]
[tool.setuptools.dynamic.dependencies]
file = ["requirements/base.txt"]
[tool.setuptools.dynamic.optional-dependencies]
dev = {file = ["requirements/dev.txt"]}
docs = {file = ["requirements/docs.txt"]}
[tool.pytest.ini_options]
addopts = "-p no:warnings -vv --no-migrations"
testpaths = ["validity/tests"]
DJANGO_SETTINGS_MODULE = "netbox.settings"
pythonpath = ["/opt/netbox/netbox"]
[tool.coverage.run]
branch = true
omit = [
"validity/tests/*",
"validity/migrations/*",
"validity/dependencies.py",
]
source = ["validity"]
[tool.coverage.report]
show_missing = true
fail_under = 75
[tool.ruff]
include = ["validity/**.py"]
exclude = ["migrations", "__pycache__", "development"]
line-length = 120
indent-width = 4
force-exclude = true
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B", "T", "I"]
ignore = ["B905"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"validity/netbox_changes/*" = ["F403", "F405"]
[tool.ruff.lint.isort]
known-first-party = ["validity"]
no-lines-before = ["local-folder"]
lines-after-imports = 2
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false