@@ -81,37 +81,30 @@ indent-style = "space"
8181
8282# Tox configuration
8383[tool .tox ]
84- legacy_tox_ini = """
85- [tox]
86- requires =
87- tox>=4
88- tox-uv
89- envlist = py, ruff-format, ruff-check, bandit
84+ requires = [" tox>=4" , " tox-uv" ]
85+ env_list = [" py" , " ruff-format" , " ruff-check" , " bandit" ]
9086
91- [testenv ]
92- description = Run unit tests
93- extras = dev
94- commands = python3 -m unittest fingr_test.py
87+ [tool . tox . env_run_base ]
88+ description = " Run unit tests"
89+ extras = [ " dev" ]
90+ commands = [[ " python3" , " -m " , " unittest" , " fingr_test.py" ]]
9591
96- [testenv: ruff-check]
97- description = Run ruff linter
98- deps = ruff
99- commands = ruff check --fix {toxinidir}/fingr.py
92+ [tool . tox . env . ruff-check ]
93+ description = " Run ruff linter"
94+ deps = [ " ruff" ]
95+ commands = [[ " ruff" , " check" , " --fix" , " {toxinidir}/fingr.py" ]]
10096
101- [testenv: ruff-format]
102- description = Check code formatting with ruff
103- deps = ruff
104- commands = ruff format {toxinidir}/fingr.py
97+ [tool . tox . env . ruff-format ]
98+ description = " Check code formatting with ruff"
99+ deps = [ " ruff" ]
100+ commands = [[ " ruff" , " format" , " {toxinidir}/fingr.py" ]]
105101
106- [testenv:mypy]
107- description = Check typing
108- deps =
109- mypy
110- types-pytz
111- commands = mypy --follow-imports skip {toxinidir}/fingr.py
102+ [tool .tox .env .mypy ]
103+ description = " Check typing"
104+ deps = [" mypy" , " types-pytz" ]
105+ commands = [[" mypy" , " --follow-imports" , " skip" , " {toxinidir}/fingr.py" ]]
112106
113- [testenv:bandit]
114- description = Check for security issues
115- deps = bandit
116- commands = bandit {toxinidir}/fingr.py
117- """
107+ [tool .tox .env .bandit ]
108+ description = " Check for security issues"
109+ deps = [" bandit" ]
110+ commands = [[" bandit" , " {toxinidir}/fingr.py" ]]
0 commit comments