Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (96 loc) · 2.99 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (96 loc) · 2.99 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
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["netbox_pathways", "netbox_pathways.*"]
[tool.setuptools.package-data]
netbox_pathways = [
"templates/**/*",
"static/**/dist/**/*",
"static/**/vendor/**/*",
"static/**/css/**/*",
"static/**/qgis/**/*",
]
[project]
name = "netbox-pathways"
version = "0.4.0"
description = "NetBox plugin for physical cable plant infrastructure documentation with GIS capabilities"
readme = "README.md"
authors = [
{ name = "Jonathan Senecal", email = "contact@jonathansenecal.com" },
]
license = "AGPL-3.0-or-later"
license-files = ["LICENSE"]
requires-python = ">=3.12"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"djangorestframework-gis>=1.2.0",
"networkx>=3.0",
]
[project.optional-dependencies]
dev = [
"bump-my-version",
"pre-commit>=4.0.0",
"pytest",
"pytest-django>=4.5.0",
"pytest-cov>=3.0.0",
"ruff",
]
docs = [
"zensical",
]
[project.urls]
Homepage = "https://github.com/jsenecal/netbox-pathways"
Source = "https://github.com/jsenecal/netbox-pathways"
Tracker = "https://github.com/jsenecal/netbox-pathways/issues"
Documentation = "https://jsenecal.github.io/netbox-pathways/"
[tool.bumpversion]
current_version = "0.4.0"
commit = true
tag = true
tag_name = "v{new_version}"
allow_dirty = false
message = "chore: bump version {current_version} -> {new_version}"
tag_message = "Release v{new_version}"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'current_version = "{current_version}"'
replace = 'current_version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "netbox_pathways/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[tool.ruff]
line-length = 120
target-version = "py312"
extend-exclude = ["**/migrations/*.py"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "S", "B", "A", "C4", "DJ", "PIE"]
ignore = ["E501", "N806", "S101", "DJ01"]
[tool.ruff.lint.per-file-ignores]
"migrations/*" = ["N806", "N999"]
"tests/*" = ["S101", "S105", "S106", "E402", "F841"]
"netbox_pathways/management/commands/generate_sample_data.py" = ["S311", "B007"]
"netbox_pathways/management/commands/import_geodata.py" = ["S603", "S607"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "netbox.settings"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --cov=netbox_pathways --cov-report=term-missing --cov-fail-under=65 --reuse-db"