Skip to content

Athena: Enable flake8 for new python config files

Frank Winklmeier requested to merge fwinkl/athena:flake8_newconfig into master

Enable flake8 for Accumulator-based python files in the Athena project and print a warning (during the build) for each code violation. See atlasexternals!512 (merged) for further details.

Packages that want to enable the flake8 with the default configuration for all their python modules, can add the following to their CMakeLists.txt:

atlas_install_python_modules( python/*.py
   POST_BUILD_CMD ${ATLAS_FLAKE8} )

This was discussed on Aug 1st in the SW coordination meeting: https://indico.cern.ch/event/838427/

cc @emoyse @wlampl @akraszna

Edited by Frank Winklmeier

Merge request reports