@nox.parametrize('sample', ALL_SAMPLE_DIRECTORIES)
def session_lint(session, sample):
 session.install('flake8', 'flake8-import-order')
 local_names = _determine_local_import_names(sample)
 args = (FLAKE8_COMMON_ARGS + ['--application-import-names', ','.join(local_names), '.'])
 session.chdir(sample)
 session.run('flake8', *args)

@ nox . parametrize ( 'sample' , ALL_SAMPLE_DIRECTORIES ) def session_lint ( session , sample ) : session . install ( 'flake8' , 'flake8-import-order' ) local_names = _determine_local_import_names ( sample ) args = ( FLAKE8_COMMON_ARGS + [ '--application-import-names' , ',' . join ( local_names ) , '.' ] ) session . chdir ( sample ) session . run ( 'flake8' , * args )
runs flake8 on the sample .