summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-05-27 10:39:01 +0800
committerZhineng Li <im@zhineng.li>2026-05-27 11:05:59 +0800
commit42c5eab863cf10cff87e25995695e08f9a117c23 (patch)
treec5eec9a6fa80cfa1caa55c5daf8bc09570618d46
parent7c3be161bb9a82a102963cd9225e3803668cf193 (diff)
downloadcertbot-dns-alibabacloud-42c5eab863cf10cff87e25995695e08f9a117c23.tar.gz
certbot-dns-alibabacloud-42c5eab863cf10cff87e25995695e08f9a117c23.zip
configure tox
-rw-r--r--pyproject.toml22
1 files changed, 22 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
index fbe6946..e4cdcbb 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -43,6 +43,7 @@ test = [
"pytest",
"mypy",
"ruff",
+ "tox",
]
[project.entry-points."certbot.plugins"]
@@ -54,6 +55,27 @@ Homepage = "https://git.zhineng.li/certbot_dns_alibabacloud"
[tool.setuptools.packages.find]
where = ["src"]
+[tool.tox]
+requires = ["tox>=4.19"]
+env_list = ["lint", "type", "3.14", "3.13", "3.12", "3.11", "3.10"]
+
+[tool.tox.env_run_base]
+description = "run tests under {base_python}"
+deps = ["pytest"]
+commands = [["pytest"]]
+
+[tool.tox.env.lint]
+description = "run ruff check on code base"
+skip_install = true
+deps = ["ruff"]
+commands = [["ruff", "check", "src/"]]
+
+[tool.tox.env.type]
+description = "run type check on code base"
+skip_install = true
+deps = ["mypy"]
+commands = [["mypy", "src/"]]
+
[tool.ruff]
line-length = 100