Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2018-05-04 16:49:34 +0300
committerGhostkeeper <rubend@tutanota.com>2018-05-04 16:57:06 +0300
commitffd1c5cc09e988f098060e97db551230edd2d1a8 (patch)
tree20a22424ce66e08b9477a3ff1e6b850601dff13f /cmake/CuraTests.cmake
parent7eda915471dd68360ff26c6ebac2a2b29733daad (diff)
Run Mypy as normal automated test
This tests all code for good style. Contributes to issue CURA-5330.
Diffstat (limited to 'cmake/CuraTests.cmake')
-rw-r--r--cmake/CuraTests.cmake8
1 files changed, 7 insertions, 1 deletions
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