Skip to content
Permalink
Browse files

Make flake8 a separate custom command

  • Loading branch information...
geographika committed Sep 27, 2018
1 parent 969ed53 commit d392122197a21d242798003e7435368eb77c622c
Showing with 8 additions and 0 deletions.
  1. +8 −0 mapscript/python/CMakeLists.txt
@@ -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"

0 comments on commit d392122

Please sign in to comment.
You can’t perform that action at this time.