Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
45 lines (37 loc) · 1.89 KB
/
Copy pathpyproject.toml
File metadata and controls
45 lines (37 loc) · 1.89 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
[project]
name = "agent-zero-plugin-diff-visualizer"
version = "0.1.4"
description = "Renders unified-diff code blocks as visual diffs in Agent Zero chat."
requires-python = ">=3.11"
# ── pytest ───────────────────────────────────────────────────────────────────
# The testkit is provided by the agent-zero-plugins-skills submodule via
# `make link-testkit` (or `make link-all`), which creates a relative symlink
# at tests/_testkit → .skills/vendor/a0-plugin-testkit. pyproject's
# pythonpath picks up the testkit's src/ so `from a0_plugin_testkit.X import Y`
# works in your tests with no extra install step.
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = [".", "tests/_testkit/src"]
# The testkit ships its own self-tests under tests/_testkit/tests/.
# Exclude them so pytest doesn't try to collect the testkit's own suite
# alongside this plugin's tests.
norecursedirs = ["tests/_testkit", "dist", "build"]
asyncio_mode = "auto"
markers = [
"unit: fast L0 tests, no subprocess, no network",
"component: L1 tests, A0 in-process or fixtures",
"integration: L2 tests, real services",
]
# ── ruff (lint + format) ─────────────────────────────────────────────────────
[tool.ruff]
target-version = "py311"
line-length = 99
[tool.ruff.lint]
select = ["E", "W", "F", "I", "UP", "B", "SIM", "RUF"]
[tool.ruff.format]
quote-style = "double"
# ── mypy ─────────────────────────────────────────────────────────────────────
[tool.mypy]
python_version = "3.11"
warn_unused_ignores = true
ignore_missing_imports = true