-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (99 loc) · 2.71 KB
/
pyproject.toml
File metadata and controls
112 lines (99 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
[project]
name = "hier-config-api"
version = "0.1.0"
description = "REST API for hier_config network configuration management"
authors = [
{name = "hier-config-api",email = "james.williams@jtdub.com"}
]
readme = "README.md"
requires-python = ">=3.10,<4.0"
dependencies = [
"fastapi (>=0.128.0,<0.129.0)",
"uvicorn[standard] (>=0.40.0,<0.41.0)",
"pydantic (>=2.12.5,<3.0.0)",
"pydantic-settings (>=2.12.0,<3.0.0)",
"hier-config @ git+https://github.com/netdevops/hier_config.git"
]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[dependency-groups]
dev = [
"pytest (>=9.0.2,<10.0.0)",
"pytest-asyncio (>=1.3.0,<2.0.0)",
"pytest-cov (>=7.0.0,<8.0.0)",
"httpx (>=0.28.1,<0.29.0)",
"ruff (>=0.14.14,<0.15.0)",
"mypy (>=1.19.1,<2.0.0)",
"pylint (>=4.0.4,<5.0.0)",
"types-pyyaml (>=6.0.12.20250915,<7.0.0.0)",
"mkdocs (>=1.6.1,<2.0.0)",
"mkdocs-material (>=9.7.1,<10.0.0)",
"mkdocstrings[python] (>=1.0.2,<2.0.0)",
"mkdocs-gen-files (>=0.6.0,<0.7.0)",
"mkdocs-literate-nav (>=0.6.2,<0.7.0)",
"mkdocs-section-index (>=0.3.10,<0.4.0)"
]
[tool.ruff]
line-length = 100
target-version = "py310"
[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
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_any_generics = false
warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "hier_config.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "hier_config"
ignore_missing_imports = true
[tool.pylint.main]
max-line-length = 100
disable = [
"C0111", # missing-docstring
"C0103", # invalid-name
"R0903", # too-few-public-methods
"R0913", # too-many-arguments
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "--cov=hier_config_api --cov-report=term-missing --cov-report=html"
[tool.coverage.run]
source = ["hier_config_api"]
omit = ["*/tests/*", "*/__init__.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]