-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (104 loc) · 2.71 KB
/
Copy pathpyproject.toml
File metadata and controls
121 lines (104 loc) · 2.71 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
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
# See PEP 518 for the spec of this file
# https://www.python.org/dev/peps/pep-0518/
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "netbox-dhcp-kea-plugin"
version = "0.9.0"
authors = [
{name = "Łukasz Polański", email = "wookasz@gmail.com"},
]
description = "NetBox plugin for KEA DHCP configuration"
readme = "README.md"
keywords = ["KEA", "DHCP"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.12.0"
[project.optional-dependencies]
test = [
"pytest==8.1.1",
"pytest-cov>=4.1.0",
"pre-commit==3.7.0",
]
dev = [
"ruff",
"check-manifest==0.49",
"pip>=24.0",
"django-stubs[compatible-mypy]",
"mypy",
]
[project.urls]
Documentation = "https://github.com/LuPo/netbox_dhcp_kea_plugin/blob/main/README.md"
Source = "https://github.com/LuPo/netbox_dhcp_kea_plugin"
Tracker = "https://github.com/LuPo/netbox_dhcp_kea_plugin/issues"
[tool.setuptools.packages.find]
include = ["netbox_dhcp_kea_plugin*"]
[tool.setuptools.package-data]
netbox_dhcp_kea_plugin = ["templates/**"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "netbox.settings"
# Reuse the test database between runs (much faster!)
addopts = "--reuse-db --cov=netbox_dhcp_kea_plugin --cov-report=term-missing --cov-report=html"
[tool.coverage.run]
source = ["netbox_dhcp_kea_plugin"]
branch = true
omit = [
"*/migrations/*",
"*/tests/*",
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
show_missing = true
precision = 2
fail_under = 0
[tool.coverage.html]
directory = "htmlcov"
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
python_version = "3.13"
strict = false
warn_return_any = true
warn_unused_configs = true
[tool.django-stubs]
django_settings_module = "netbox.settings"
[tool.ruff]
line-length = 120
target-version = "py313"
extend-exclude = [
"*/templates/*",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["netbox_dhcp_kea_plugin"]