-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
171 lines (153 loc) · 4.4 KB
/
pyproject.toml
File metadata and controls
171 lines (153 loc) · 4.4 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[build-system]
requires = ["hatchling>=1.24"]
build-backend = "hatchling.build"
[project]
name = "open-aura"
version = "0.1.2"
description = "Agentic Updates, Reviews, and Accountability — CI-native weekly project briefs powered by Pydantic AI."
readme = "PYPI.md"
requires-python = ">=3.11"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "OpenAURA contributors" }]
keywords = ["ai", "agents", "devops", "pydantic-ai", "ci", "reporting", "openai", "anthropic"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"pydantic-ai-slim[anthropic,openai]==1.85.0",
"pydantic>=2.0,<3",
"httpx>=0.27,<1",
"typer>=0.12,<1",
"pyyaml>=6.0,<7",
"jinja2>=3.1,<4",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=5.0",
"respx>=0.21",
"ruff>=0.5",
"mypy>=1.10",
"bandit>=1.7",
"build>=1.2",
"hatchling>=1.24",
"pip-audit>=2.7",
"types-PyYAML",
]
[project.urls]
Homepage = "https://github.com/pradelgorithm/openaura"
Documentation = "https://github.com/pradelgorithm/openaura#readme"
Issues = "https://github.com/pradelgorithm/openaura/issues"
Source = "https://github.com/pradelgorithm/openaura"
[project.scripts]
aura = "openaura.main:app"
[tool.hatch.build.targets.wheel]
packages = ["openaura"]
[tool.hatch.build.targets.sdist]
include = [
"openaura",
"tests",
"README.md",
"PYPI.md",
"MANIFESTO.md",
"AGENTS.md",
"LICENSE",
"SECURITY.md",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"aura.config.example.yml",
"pyproject.toml",
]
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["openaura", "tests"]
extend-exclude = ["brandbook", "output/briefs"]
[tool.ruff.lint]
# Semi-strict — strong core rules, docstring noise off, type-annotation noise off.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # Ruff-specific
"S", # bandit-lite (security)
"PIE", # flake8-pie
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"PL", # pylint
"PTH", # flake8-use-pathlib
"DTZ", # naive datetimes
"ARG", # unused arguments
"ASYNC", # async-specific issues
]
ignore = [
"S101", # assert use — fine in tests/dev
"PLR0913", # too many arguments — pragmatic
"PLR0912", # too many branches — pragmatic
"PLR0915", # too many statements — pragmatic
"PLR2004", # magic numbers — noisy
"TRY003", # long message in raise — we want descriptive errors
"TRY300", # consider else block — noisy
"TRY301", # abstract raise — pragmatic
"TRY400", # logger.exception — error is fine
"N818", # exception name must end in Error — AuraRunError etc. do
]
unfixable = ["B"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S", "B", "PLR", "SLF", "ARG", "ASYNC"]
"openaura/templates/**" = ["ALL"]
"openaura/output/templates/**" = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["openaura"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
docstring-code-format = true
[tool.mypy]
python_version = "3.11"
strict = true
warn_unreachable = true
disallow_untyped_decorators = false
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "-ra --strict-markers"
[tool.coverage.run]
source = ["openaura"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
[tool.bandit]
exclude_dirs = ["tests"]