-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (101 loc) · 2.98 KB
/
pyproject.toml
File metadata and controls
113 lines (101 loc) · 2.98 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
[project]
name = "nac-yaml"
version = "2.0.0a0"
description = "A Python library with common YAML utility functions supporting 'Network as Code'."
license = { text = "MPL-2.0" }
readme = "README.md"
authors = [
{ name = "Daniel Schmidt", email = "danischm@cisco.com" },
]
maintainers = [
{ name = "Daniel Schmidt", email = "danischm@cisco.com" },
]
requires-python = ">=3.10"
keywords = ["yaml", "network", "automation", "cisco", "utilities"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"ruamel.yaml>=0.18.15",
]
[project.urls]
homepage = "https://github.com/netascode/nac-yaml"
repository = "https://github.com/netascode/nac-yaml"
documentation = "https://github.com/netascode/nac-yaml"
[project.optional-dependencies]
dev = [
"ansible-core>=2.17.6",
"bandit[toml]>=1.8.6",
"mypy>=1.17.1",
"pre-commit>=4.3.0",
"pytest>=8.4.2",
"pytest-cov>=6.2.1",
"pytest-mock>=3.15.0",
"ruff>=0.12.12",
]
[tool.coverage.run]
source = ["nac_yaml"]
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "@abstract", "except ImportError:"]
omit = ["*/__main__.py"]
[tool.mypy]
# The mypy configurations: http://bit.ly/2zEl9WI
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = false
disallow_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
python_version = "3.10"
strict_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = false
warn_unreachable = true
show_error_context = true
[tool.pytest.ini_options]
markers = ["unit", "integration"]
[tool.ruff]
target-version = "py310"
line-length = 88
extend-exclude = [
"nac_yaml/ansible_vault.py", # Special file with non-standard formatting
]
[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.lint.per-file-ignores]
"__init__.py" = ["F401"]
"nac_yaml/ansible_vault.py" = ["ALL"] # Special file with non-standard formatting
[tool.ruff.lint.isort]
known-first-party = ["nac_yaml"]
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"] # Skip assert_used test
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"