From 0c76f069a841288bc6b8d8839e6964173daf3030 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Tue, 8 May 2018 17:20:29 +0200 Subject: [PATCH] Add flake8 unit test Add unit test to check python syntax using flake8. Former-commit-id: 4249f57b7677225779fe5c59dd8875f82f864158 --- Control/AthenaConfiguration/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Control/AthenaConfiguration/CMakeLists.txt b/Control/AthenaConfiguration/CMakeLists.txt index 5a5784cf2317..2328241333c9 100644 --- a/Control/AthenaConfiguration/CMakeLists.txt +++ b/Control/AthenaConfiguration/CMakeLists.txt @@ -11,6 +11,12 @@ atlas_subdir( AthenaConfiguration ) # Install files from the package: atlas_install_python_modules( python/*.py ) atlas_install_runtime(python/*.pkl ) - -atlas_add_test( ComponentAccumulatorTest SCRIPT python -m AthenaConfiguration.ComponentAccumulator ) atlas_install_scripts( share/confTool.py ) + +atlas_add_test( ComponentAccumulatorTest + SCRIPT python -m AthenaConfiguration.ComponentAccumulator ) + +# Check python syntax: +atlas_add_test( flake8 + SCRIPT flake8 --select=F,E7,E9,W6 ${CMAKE_CURRENT_SOURCE_DIR}/python + POST_EXEC_SCRIPT nopost.sh ) -- GitLab