From 11e00ad00703bb63dd23097ef07082697c8adfb7 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 3 Feb 2026 14:47:54 +0100 Subject: [PATCH] node-proxy: add tox config for mypy, flake8, isort, black this adds tox.ini with environments to run mypy, flake8, isort, and black on the ceph_node_proxy code. Fixes: https://tracker.ceph.com/issues/74749 Signed-off-by: Guillaume Abrioux --- src/ceph-node-proxy/tox.ini | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/ceph-node-proxy/tox.ini diff --git a/src/ceph-node-proxy/tox.ini b/src/ceph-node-proxy/tox.ini new file mode 100644 index 00000000000..5e4acb62d4c --- /dev/null +++ b/src/ceph-node-proxy/tox.ini @@ -0,0 +1,30 @@ +[tox] +envlist = mypy,flake8,isort,black +minversion = 3.0 +skipsdist = true + +[testenv] +passenv = * +setenv = PYTHONPATH = {toxinidir} + +[testenv:mypy] +description = Run mypy type checker +deps = + mypy >= 1.0 + types-PyYAML +commands = mypy ceph_node_proxy + +[testenv:flake8] +description = Run flake8 linter +deps = flake8 >= 6.0 +commands = flake8 --max-line-length=120 --extend-ignore=E203,W503 ceph_node_proxy + +[testenv:isort] +description = Check import sorting with isort +deps = isort >= 5.0 +commands = isort --profile black --check-only --diff ceph_node_proxy + +[testenv:black] +description = Check code formatting with black +deps = black >= 23.0 +commands = black --check ceph_node_proxy -- 2.47.3