From: sergeyb@tarantool.org To: tarantool-patches@dev.tarantool.org, lvasiliev@tarantool.org Cc: alexander.turenko@tarantool.org Subject: [Tarantool-patches] [PATCH 5/6] cmake: add integration with flake8 Date: Mon, 7 Dec 2020 10:46:55 +0300 [thread overview] Message-ID: <74c1afcd0a5fdd305ecc5b9d149d30b62a996886.1607326642.git.sergeyb@tarantool.org> (raw) In-Reply-To: <cover.1607326642.git.sergeyb@tarantool.org> From: Sergey Bronnikov <sergeyb@tarantool.org> introduced two new targets: - separate target to run flake8 - separate target to run all static analyzers (currently luacheck and flake8) --- CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa6818f8e..8dae93e6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ find_program(GIT git) find_program(LD ld) find_program(CTAGS ctags) find_program(LUACHECK luacheck ENV PATH) +find_program(FLAKE8 flake8 ENV PATH) # Define PACKAGE macro in tarantool/config.h set(PACKAGE "Tarantool" CACHE STRING "Package name.") @@ -164,6 +165,23 @@ add_custom_command(TARGET luacheck COMMENT "Perform static analysis of Lua code" ) +# +# Enable 'make flake8' target. +# + +add_custom_target(flake8) +add_custom_command(TARGET flake8 + COMMAND ${FLAKE8} --config "${PROJECT_SOURCE_DIR}/.flake8" "${PROJECT_SOURCE_DIR}/test" + COMMENT "Perform static analysis of Python code" +) + +# +# Enable 'make check' target. +# + +add_custom_target(check) +add_dependencies(check luacheck flake8) + if (WITH_JEPSEN) ExternalProject_Add( jepsen-tests -- 2.25.1
next prev parent reply other threads:[~2020-12-07 7:51 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-07 7:46 [Tarantool-patches] [PATCH 0/6] Support Python 3 in tests and PEPify source code sergeyb 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 1/6] test: support Python 3 and make quotes use consistent sergeyb 2020-12-09 15:58 ` Leonid Vasiliev 2020-12-10 13:23 ` Sergey Bronnikov 2020-12-10 13:29 ` Sergey Bronnikov 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 2/6] test: remove dead code in Python tests end extra newline sergeyb 2020-12-09 20:20 ` Leonid Vasiliev 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 3/6] test: remove empty print() functions sergeyb 2020-12-09 20:27 ` Leonid Vasiliev 2020-12-10 13:26 ` Sergey Bronnikov 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 4/6] add initial flake8 config sergeyb 2020-12-09 20:57 ` Leonid Vasiliev 2020-12-07 7:46 ` sergeyb [this message] 2020-12-07 7:46 ` [Tarantool-patches] [PATCH 6/6] ci: enable flake8 sergeyb
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=74c1afcd0a5fdd305ecc5b9d149d30b62a996886.1607326642.git.sergeyb@tarantool.org \ --to=sergeyb@tarantool.org \ --cc=alexander.turenko@tarantool.org \ --cc=lvasiliev@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 5/6] cmake: add integration with flake8' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox