From: John Mulligan Date: Fri, 3 Apr 2026 15:23:23 +0000 (-0400) Subject: python-common: copy mgr isort tox config into this tox.ini X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9c3f7d7868de4236ba895ee722ade621428f4272;p=ceph.git python-common: copy mgr isort tox config into this tox.ini For consistency, add tox env for running isort in python common. Basically copies the tox.ini config. Like pybind/mgr this is 'opt in' so we only initially have the smb module listed here. Signed-off-by: John Mulligan --- diff --git a/src/python-common/tox.ini b/src/python-common/tox.ini index 0bcddea887b..930d818c560 100644 --- a/src/python-common/tox.ini +++ b/src/python-common/tox.ini @@ -54,3 +54,27 @@ commands = deps = {[black]deps} commands = black {[black]options} {[black]modules} + + +# OPT-IN import style formatting with 'isort' +# add your module to the modules list below to use automated import sorting +[isortcfg] +deps = isort +modules = ceph/smb + +[isort] +profile = black +line_length = 78 +known_first_party = ceph,rados,rbd,cephfs,mgr +known_typing = typing +sections = FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER + +[testenv:check-isort] +deps = {[isortcfg]deps} +commands = + isort --check-only {[isortcfg]modules} + +[testenv:format-isort] +deps = {[isortcfg]deps} +commands = + isort {[isortcfg]modules}