diff options
author | Ghostkeeper <rubend@tutanota.com> | 2018-05-04 16:49:34 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2018-05-04 16:57:06 +0300 |
commit | ffd1c5cc09e988f098060e97db551230edd2d1a8 (patch) | |
tree | 20a22424ce66e08b9477a3ff1e6b850601dff13f /cmake | |
parent | 7eda915471dd68360ff26c6ebac2a2b29733daad (diff) |
Run Mypy as normal automated test
This tests all code for good style.
Contributes to issue CURA-5330.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/CuraTests.cmake | 8 |
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 |