Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make flake8 a separate custom command
  • Loading branch information
geographika committed Sep 27, 2018
1 parent 969ed53 commit d392122
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mapscript/python/CMakeLists.txt
Expand Up @@ -98,6 +98,14 @@ add_custom_command(

add_custom_command(
DEPENDS mapscriptvenvpop.stamp
OUTPUT mapscriptlinting.stamp
WORKING_DIRECTORY ${OUTPUT_FOLDER}
COMMENT "Linting test code files with flake8"
COMMAND ${PYTHON_VENV_SCRIPTS}/flake8 $<TARGET_FILE_DIR:${SWIG_MODULE_pythonmapscript_REAL_NAME}>/mapscript/tests --max-line-length=120
)

add_custom_command(
DEPENDS mapscriptlinting.stamp
OUTPUT mapscriptwheel.stamp
WORKING_DIRECTORY ${OUTPUT_FOLDER}
COMMENT "Copying files required to build Mapscript"
Expand Down

0 comments on commit d392122

Please sign in to comment.