-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (95 loc) · 2.26 KB
/
Copy pathpyproject.toml
File metadata and controls
114 lines (95 loc) · 2.26 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
[project]
name = "infrahub-solution-ai-dc"
version = "0.1.0"
description = "Infrahub Solution AI DC"
readme = "README.md"
authors = [{ name = "OpsMill", email = "info@opsmill.com" }]
requires-python = ">=3.11, <3.15"
dependencies = [
"httpx>=0.28.1",
]
[dependency-groups]
dev = [
"infrahub-sdk[all]>=1.22.0",
"infrahub-testcontainers>=1.10.0",
"invoke>=2.2.0",
"mypy>=1.17.1",
"pytest>=8.4.1",
"pytest-asyncio>=1.0.0",
"ruff>=0.12.0",
"rumdl>=0.1.20",
"yamllint>=1.37.1",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.mypy]
pretty = true
ignore_missing_imports = true
disallow_untyped_defs = true
[tool.ruff]
line-length = 120
exclude = [
".agents", # installed skills are vendored from opsmill/infrahub-skills; lint upstream
".git",
".tox",
".venv",
"env",
"_build",
"build",
"dist",
"examples",
]
[tool.ruff.lint]
preview = true
task-tags = ["FIXME", "TODO", "XXX"]
select = ["ALL"]
ignore = [
"D", # pydocstyle
"DOC", # pydoclint
"CPY", # flake8-copyright
"T201", # use of `print`
"ISC", # flake8-implicit-str-concat
"COM812", # missing-trailing-comma
"PT",
"ERA001", # commented-out code
"S101", # use of assert
"PLR6301",
"FBT",
"G004", # Logging statement uses f-string
"PLR",
]
#https://docs.astral.sh/ruff/formatter/black/
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["infrahub_solution_ai_dc"]
[tool.ruff.lint.pycodestyle]
max-line-length = 150
[tool.ruff.lint.mccabe]
# Target max-complexity=10
max-complexity = 17
[tool.rumdl]
disable = ["MD013", "MD025", "MD029", "MD033", "MD036", "MD041"]
exclude = [
".agents/", # installed skills are vendored from upstream skill repos; lint upstream
".claude/",
".git/",
".kiro/",
".specify/", # spec-kit scaffolding managed by the spec-kit installer
".mypy_cache/",
".ruff_cache/",
".venv/",
"docs/.docusaurus/",
"docs/build/",
"docs/node_modules/",
"docs/README.md",
"node_modules/",
]
respect_gitignore = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"