build: tox cleanup

This commit is contained in:
2026-07-23 15:54:26 +03:00
parent f37c5bd2a2
commit 9c3d1471e0
+13 -12
View File
@@ -2,7 +2,6 @@ env_list = [
"check", "check",
"tests", "tests",
] ]
isolated_build = true
requires = [ requires = [
"tox-uv", "tox-uv",
] ]
@@ -33,6 +32,17 @@ bandit = [
"--configfile", "--configfile",
".bandit.toml", ".bandit.toml",
] ]
coverage_report = [
"--show-missing",
"--skip-covered",
"--fail-under=100",
]
coverage_run = [
"--source",
"ahriman",
"-m",
"pytest",
]
manpage = [ manpage = [
"--author", "--author",
"{[project]name} team", "{[project]name} team",
@@ -114,7 +124,6 @@ deps = [
pip_pre = true pip_pre = true
set_env.CFLAGS = "-Wno-unterminated-string-initialization" set_env.CFLAGS = "-Wno-unterminated-string-initialization"
set_env.MYPYPATH = "ahriman-core/src:ahriman-triggers/src:ahriman-web/src" set_env.MYPYPATH = "ahriman-core/src:ahriman-triggers/src:ahriman-web/src"
uv_seed = true
commands = [ commands = [
[ [
"autopep8", "autopep8",
@@ -275,15 +284,12 @@ deps = [
{ replace = "ref", of = ["project", "extras"], extend = true }, { replace = "ref", of = ["project", "extras"], extend = true },
] ]
pip_pre = true pip_pre = true
recreate = true
commands = [ commands = [
[ [
"sphinx-build", "sphinx-build",
"--builder", "--builder",
"html", "html",
"--fail-on-warning", "--fail-on-warning",
"--jobs",
"1",
"--write-all", "--write-all",
"docs", "docs",
"{envtmpdir}/html", "{envtmpdir}/html",
@@ -353,10 +359,7 @@ commands = [
[ [
"coverage", "coverage",
"run", "run",
"--source", { replace = "ref", of = ["flags", "coverage_run"], extend = true },
"ahriman",
"-m",
"pytest",
{ replace = "posargs", default = [ { replace = "posargs", default = [
"tests/test_tests.py", "tests/test_tests.py",
"ahriman-core/tests", "ahriman-core/tests",
@@ -367,9 +370,7 @@ commands = [
[ [
"coverage", "coverage",
"report", "report",
"--show-missing", { replace = "ref", of = ["flags", "coverage_report"], extend = true },
"--skip-covered",
"--fail-under=100",
], ],
] ]