pyproject.toml•2.65 kB
[project]
name = "netbox-mcp-server"
version = "1.0.0"
description = "A robust MCP server for NetBox infrastructure access with HashiCorp Vault integration and PostgreSQL state confidence."
authors = [
{name = "Your Name", email = "your.email@example.com"},
]
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.9"
dependencies = [
"mcp>=0.9.0",
"pynetbox>=7.0.0",
"hvac>=2.0.0",
"psycopg2-binary>=2.9.0",
"python-dotenv>=1.0.0",
]
[project.scripts]
netbox-mcp-server = "src.server:main"
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"--disable-warnings",
"--strict-config",
"--color=yes",
"--durations=10",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"performance: Performance tests",
"error_handling: Error handling tests",
"edge_cases: Edge case tests",
"slow: Slow running tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/test_*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["src"]
known_third_party = ["mcp", "pynetbox", "hvac", "psycopg2", "dotenv"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"hvac.*",
"pynetbox.*",
"psycopg2.*",
]
ignore_missing_imports = true
[tool.flake8]
max-line-length = 88
extend-ignore = ["E203", "W503", "E501"]
exclude = [
".git",
"__pycache__",
"build",
"dist",
".venv",
".eggs",
]