@power_session(python=PY38, logsdir=Folders.runlogs)
def flake8(session: PowerSession):
    'Launch flake8 qualimetry.'
    session.install('-r', str((Folders.ci_tools / 'flake8-requirements.txt')))
    session.run2('pip install -e .[flake8]')
    rm_folder(Folders.flake8_reports)
    rm_file(Folders.flake8_intermediate_file)
    session.run('flake8', pkg_name, '--exit-zero', '--format=html', '--htmldir', str(Folders.flake8_reports), '--statistics', '--tee', '--output-file', str(Folders.flake8_intermediate_file))
    session.run2(('genbadge flake8 -i %s -o %s' % (Folders.flake8_intermediate_file, Folders.flake8_badge)))
    rm_file(Folders.flake8_intermediate_file)
Launch flake8 qualimetry.
@power_session(python=PY38, logsdir=Folders.runlogs)
def flake8(session: PowerSession):
    
    session.install('-r', str((Folders.ci_tools / 'flake8-requirements.txt')))
    session.run2('pip install -e .[flake8]')
    rm_folder(Folders.flake8_reports)
    rm_file(Folders.flake8_intermediate_file)
    session.run('flake8', pkg_name, '--exit-zero', '--format=html', '--htmldir', str(Folders.flake8_reports), '--statistics', '--tee', '--output-file', str(Folders.flake8_intermediate_file))
    session.run2(('genbadge flake8 -i %s -o %s' % (Folders.flake8_intermediate_file, Folders.flake8_badge)))
    rm_file(Folders.flake8_intermediate_file)