From ffd1c5cc09e988f098060e97db551230edd2d1a8 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 4 May 2018 15:49:34 +0200 Subject: [PATCH] Run Mypy as normal automated test This tests all code for good style. Contributes to issue CURA-5330. --- cmake/CuraTests.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmake/CuraTests.cmake b/cmake/CuraTests.cmake index ffe4616bf3..801f054bc3 100644 --- a/cmake/CuraTests.cmake +++ b/cmake/CuraTests.cmake @@ -1,4 +1,4 @@ -# Copyright (c) 2017 Ultimaker B.V. +# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. enable_testing() @@ -53,3 +53,9 @@ foreach(_plugin ${_plugins}) cura_add_test(NAME pytest-${_plugin_name} DIRECTORY ${_plugin_directory} PYTHONPATH "${_plugin_directory}|${CMAKE_SOURCE_DIR}|${URANIUM_DIR}") endif() endforeach() + +#Add code style test. +add_test( + NAME "code-style" + COMMAND ${PYTHON_EXECUTABLE} run_mypy.py WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} +) \ No newline at end of file