@nox.session(name='invoke', python='3')
def invoke(session):
    '\n    Run invoke tasks\n    '
    if _upgrade_pip_setuptools_and_wheel(session):
        requirements_file = os.path.join('requirements', 'static', 'ci', _get_pydir(session), 'invoke.txt')
        install_command = ['--progress-bar=off', '-r', requirements_file]
        session.install(*install_command, silent=PIP_INSTALL_SILENT)
    cmd = ['inv']
    files = []
    for (idx, posarg) in enumerate(session.posargs):
        if (idx == 0):
            cmd.append(posarg)
            continue
        if posarg.startswith('--'):
            cmd.append(posarg)
            continue
        files.append(posarg)
    if files:
        cmd.append('--files={}'.format(' '.join(files)))
    session.run(*cmd)
Run invoke tasks
@nox.session(name='invoke', python='3')
def invoke(session):
    '\n    \n    '
    if _upgrade_pip_setuptools_and_wheel(session):
        requirements_file = os.path.join('requirements', 'static', 'ci', _get_pydir(session), 'invoke.txt')
        install_command = ['--progress-bar=off', '-r', requirements_file]
        session.install(*install_command, silent=PIP_INSTALL_SILENT)
    cmd = ['inv']
    files = []
    for (idx, posarg) in enumerate(session.posargs):
        if (idx == 0):
            cmd.append(posarg)
            continue
        if posarg.startswith('--'):
            cmd.append(posarg)
            continue
        files.append(posarg)
    if files:
        cmd.append('--files={}'.format(' '.join(files)))
    session.run(*cmd)