diff options
| -rw-r--r-- | pyproject.toml | 22 |
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 |
