diff --git a/pyproject.toml b/pyproject.toml index f4befb8..e7b7ed7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ home-page = "https://www.oziproject.dev" author = "Eden Ross Duff MSc" author-email = "help@oziproject.dev" license = "Unlicense" +requires-python = '>=3.10, <3.14' download-url = "https://github.com/OZI-Project/ozi-spec/archive/refs/tags/{version}.tar.gz" project-urls = ["Documentation, https://docs.oziproject.dev/en/latest/ozi_spec.html"] keywords = "specification,standard,OZI,mesonbuild" @@ -25,6 +26,7 @@ classifiers = [ 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: Implementation :: CPython', 'Intended Audience :: Other Audience', 'Natural Language :: English', @@ -201,6 +203,7 @@ ignore = [ "RUF009", "RUF012", "RUF015", + "RUF200", "SIM", "T201", "TCH002", @@ -312,15 +315,24 @@ commands = description = quickly fix minor source issues deps = pipx skip_install = true +commands_pre = commands = - pipx run --python {env_python} -q black -S . - pipx run --python {env_python} -q isort . - pipx run --python {env_python} -q autoflake -i -r . - pipx run --python {env_python} -q ruff check ozi_spec --fix + pipx run --python {env_python} black -S . + pipx run --python {env_python} isort . + pipx run --python {env_python} autoflake -i -r . + pipx run --python {env_python} ruff check . --fix +commands_post = [testenv:scm] description = OZI supply chain management (setuptools_scm) deps = setuptools_scm[toml]>=8 commands = {env_python} -m setuptools_scm {posargs} + +[testenv:invoke] +description = OZI invoke task entrypoint, for more info use "tox -e invoke -- --list" +no_package = true +commands_post = + {env_python} -m invoke --search-root={env_tmp_dir}/subprojects/ozi/ozi {posargs} + """