Skip to content

tox-to-nox should correctly separate the command-line arguments #905

@chirizxc

Description

@chirizxc

Current Behavior

I try to convert config from tox.ini to nox (noxfile.py)
tox.ini - https://github.com/reagento/dishka/blob/develop/tox.ini

Expected Behavior

tox-to-nox tool should correctly separate the command-line arguments.

Specifically, the "-r requirements/aiogram-330.txt" argument should be split into two separate strings like this:

session.install('pytest', 'pytest-cov', '-r', 'requirements/aiogram-330.txt')

Steps To Reproduce

tox.ini - https://github.com/reagento/dishka/blob/develop/tox.ini

uv pip install --upgrade nox[tox_to_nox]
tox-to-nox

Generated noxfile.py output:

@nox.session(python='python3.13')
def aiogram_330(session):
    session.install('pytest', 'pytest-cov', '-r requirements/aiogram-330.txt')
    session.install('-e', '.')
    session.run('pytest', '--cov=dishka', '--cov-append', '--cov-report=term-missing', '-v', 'tests/integrations/aiogram')

Environment

- OS: Windows 10
- Python: 3.13
- Nox: 2024.10.9

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions