Skip to content

Commit 231ce23

Browse files
committed
migrate toplevel tool configs to pyproject.toml
* migrate tox.ini to pyproject.toml sections * migrate pytest.ini to pyproject.toml sections
1 parent 07db3a6 commit 231ce23

4 files changed

Lines changed: 30 additions & 26 deletions

File tree

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Bug Fixes
1515
Internal
1616
---------
1717
* Collect CLI arguments into a dataclass.
18-
* Clean up generate files after test runs.
18+
* Clean up generated files after test runs.
19+
* Migrate toplevel tool configurations to `pyproject.toml`.
1920

2021

2122
1.66.0 (2026/03/21)

pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,31 @@ warn_no_return = true
120120
warn_unused_configs = true
121121
show_column_numbers = true
122122
exclude = ['^build/', '^dist/']
123+
124+
[tool.tox]
125+
env_list = ['python']
126+
requires = ['tox>=4.20']
127+
128+
[tool.tox.env_run_base]
129+
skip_install = true
130+
deps = ['uv']
131+
passenv = ['PYTEST_HOST',
132+
'PYTEST_USER',
133+
'PYTEST_PASSWORD',
134+
'PYTEST_PORT',
135+
'PYTEST_CHARSET']
136+
commands = [['uv', 'pip', 'install', '-e', '.[dev,ssh,llm]'],
137+
['coverage', 'run', '-m', 'pytest', '-v', 'test'],
138+
['coverage', 'report', '-m'],
139+
['behave', 'test/features']]
140+
commands_post = [['rm', '-f', '--', './.myclirc']]
141+
allowlist_externals = ['rm']
142+
143+
[tool.tox.env.style]
144+
skip_install = true
145+
deps = ['ruff']
146+
commands = [['ruff', 'check'],
147+
['ruff', 'format', '--diff']]
148+
149+
[tool.pytest]
150+
addopts = ['--ignore=mycli/packages/paramiko_stub/__init__.py']

pytest.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

tox.ini

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)