-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
100 lines (88 loc) · 1.93 KB
/
pyproject.toml
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
[project]
name = "ansible-network"
version = "0.1.0"
description = "Synodic repository for Ansible network roles"
authors = [
{name = "Asher Norland", email = "[email protected]"},
]
dependencies = [
"ansible>=11.1.0", # Full ansible for vscode extension
"ansible-vault>=2.1",
"pydantic>=2.10.3",
"pyyaml>=6.0.2",
]
requires-python = ">=3.12" # Pinned to Ubuntu 24 version
readme = "README.md"
license = {text = "MIT"}
[dependency-groups]
lint = [
"ansible-lint>=24.12.2",
"ruff>=0.8.5",
"mypy>=1.14",
]
test = [
"dnspython>=2.7.0", # For molecule verification
"molecule>=24.12.0",
"pytest>=8.3.4",
"pytest-mock>=3.14.0",
"pytest-ansible>=24.12.0",
"molecule-plugins[docker]>=23.6.0",
]
[tool.pytest.ini_options]
log_cli = true
markers = [
"setup: Tests that should be run prior to any automation, verifying static IP setup",
]
testpaths = [
"tests",
]
[tool.mypy]
exclude = "__pypackages__"
plugins = ["pydantic.mypy"]
strict = true
[tool.ruff]
line-length = 120
preview = true
[tool.ruff.lint]
ignore = [
"D206",
"D300",
"D415",
"E111",
"E114",
"E117",
]
select = [
"D", # pydocstyle
"F", # Pyflakes
"I", # isort
"PL", # pylint
"UP", # pyupgrade
"E", # pycodestyle
"B", # flake8-bugbear
"SIM", # flake8-simplify
"PT", # flake8-pytest-style
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
docstring-code-format = true
indent-style = "space"
quote-style = "single"
[tool.coverage.report]
skip_empty = true
[tool.pdm.options]
update = ["--update-all"]
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
analyze = {cmd = "ruff check tests"}
ansible-lint = {cmd = "ansible-lint"}
format = {cmd = "ruff format"}
lint = {composite = ["analyze", "format", "type-check", "ansible-lint"]}
test = {composite = ["test-pytest"]}
test-pytest = {cmd = "pytest --verbose tests"}
test-molecule = {cmd = "molecule test --all"}
type-check = {cmd = "mypy ."}
[tool.pdm]
distribution = false