-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (123 loc) · 3.06 KB
/
pyproject.toml
File metadata and controls
141 lines (123 loc) · 3.06 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mistapi"
version = "0.61.3"
authors = [{ name = "Thomas Munzer", email = "tmunzer@juniper.net" }]
description = "Python package to simplify the Mist System APIs usage"
keywords = ["Mist", "Juniper", "API"]
license = { text = "MIT License" }
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"Topic :: System :: Networking",
"Development Status :: 4 - Beta",
]
dependencies = [
"python-dotenv>=1.1.0",
"requests>=2.32.3",
"tabulate>=0.9.0",
"deprecation>=2.1.0",
"hvac>=2.3.0",
"keyring>=24.3.0",
"websocket-client>=1.8.0",
"sshkeyboard>=2.3.1",
]
[project.urls]
"Source" = "https://github.com/tmunzer/mistapi_python"
"Bug Tracker" = "https://github.com/tmunzer/mistapi_python/issues"
# UV-specific configuration
#[tool.uv]
#preview = true
#[tool.uv.scripts]
#test = "pytest"
#lint = "ruff check src/"
#fmt = "ruff format src/"
#build = "python -m build"
[dependency-groups]
dev = [
# Testing dependencies
"pytest>=8.4.0",
"pytest-cov>=6.1.1",
"responses>=0.25.7",
"factory-boy>=3.3.3",
# "pytest-mock>=3.14.1",
# "pytest-httpx>=0.35.0",
# "faker>=37.3.0",
# "httpx>=0.28.1",
# Code quality
"ruff>=0.11.13",
# Development dependencies
"twine>=6.1.0",
"build>=1.2.2.post1",
"pyyaml>=6.0.2",
"urllib3>=2.6.3",
]
# Hatchling configuration (replaces setup.cfg)
[tool.hatchling.build.targets.wheel]
packages = ["src/mistapi"]
[tool.hatchling.build.targets.sdist]
include = ["/src", "/tests", "/README.md", "/pyproject.toml"]
# Test configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = ["unit: Unit tests", "integration: Integration tests"]
# Exclude API files that happen to start with "test"
norecursedirs = ["src/mistapi/api/*/utils"]
collect_ignore = [
"src/mistapi/api/v1/utils/test_smsglobal.py",
"src/mistapi/api/v1/utils/test_telstra.py",
"src/mistapi/api/v1/utils/test_twilio.py",
]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"--disable-warnings",
"--cov=src/mistapi",
"--cov-report=html",
"--cov-report=term-missing",
"--cov-fail-under=30",
"--cov-config=pyproject.toml",
]
[tool.coverage.run]
source = ["src/mistapi"]
omit = [
"src/mistapi/api/v1/*",
"src/mistapi/cli.py",
"*/test_*.py",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]
# Ruff configuration - exclude autogenerated API code
[tool.ruff]
#exclude = ["src/mistapi/api/**/*.py"]
[tool.bandit]
targets = ["src"]
exclude_dirs = ["tests"]
[tool.pylic]
safe_licenses = [
"Apache-2.0",
"MIT License",
"MIT",
"PSF-2.0",
"BSD License",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC License (ISCL)",
]