@nox.session(python=PYTHON_VERSIONS)
def lint(session):
    install_dev_deps(session)
    install_hydra(session, ['pip', 'install', '-e'])
    apps = _get_standalone_apps_dirs()
    session.log('Installing standalone apps')
    for subdir in apps:
        session.chdir(str(subdir))
        session.run(*_black_cmd(), silent=SILENT)
        session.run(*_isort_cmd(), silent=SILENT)
        session.chdir(BASE)
    session.run(*_black_cmd(), silent=SILENT)
    skiplist = (apps + ['.git', 'website', 'plugins', 'tools', '.nox', 'hydra/grammar/gen', 'tools/configen/example/gen', 'tools/configen/tests/test_modules/expected', 'temp'])
    isort = (_isort_cmd() + [f'--skip={skip}' for skip in skiplist])
    session.run(*isort, silent=SILENT)
    session.run('mypy', '.', '--strict', silent=SILENT)
    session.run('flake8', '--config', '.flake8')
    session.run('yamllint', '.')
    example_dirs = ['examples/advanced/', 'examples/configure_hydra', 'examples/patterns', 'examples/instantiate', 'examples/tutorials/basic/your_first_hydra_app', 'examples/tutorials/basic/running_your_hydra_app', 'examples/tutorials/structured_configs/']
    for edir in example_dirs:
        dirs = find_dirs(path=edir)
        for d in dirs:
            session.run('mypy', d, '--strict', silent=SILENT)
    lint_plugins_in_dir(session=session, directory='examples/plugins')
    session.run('bandit', '--exclude', './.nox/**', '-ll', '-r', '.', silent=SILENT)
@nox.session(python=PYTHON_VERSIONS)
def lint(session):
    install_dev_deps(session)
    install_hydra(session, ['pip', 'install', '-e'])
    apps = _get_standalone_apps_dirs()
    session.log('Installing standalone apps')
    for subdir in apps:
        session.chdir(str(subdir))
        session.run(*_black_cmd(), silent=SILENT)
        session.run(*_isort_cmd(), silent=SILENT)
        session.chdir(BASE)
    session.run(*_black_cmd(), silent=SILENT)
    skiplist = (apps + ['.git', 'website', 'plugins', 'tools', '.nox', 'hydra/grammar/gen', 'tools/configen/example/gen', 'tools/configen/tests/test_modules/expected', 'temp'])
    isort = (_isort_cmd() + [f'--skip={skip}' for skip in skiplist])
    session.run(*isort, silent=SILENT)
    session.run('mypy', '.', '--strict', silent=SILENT)
    session.run('flake8', '--config', '.flake8')
    session.run('yamllint', '.')
    example_dirs = ['examples/advanced/', 'examples/configure_hydra', 'examples/patterns', 'examples/instantiate', 'examples/tutorials/basic/your_first_hydra_app', 'examples/tutorials/basic/running_your_hydra_app', 'examples/tutorials/structured_configs/']
    for edir in example_dirs:
        dirs = find_dirs(path=edir)
        for d in dirs:
            session.run('mypy', d, '--strict', silent=SILENT)
    lint_plugins_in_dir(session=session, directory='examples/plugins')
    session.run('bandit', '--exclude', './.nox/**', '-ll', '-r', '.', silent=SILENT)