From 7bf3084b28721b08d8b9dac331196268dcc6bce8 Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Wed, 8 Feb 2023 13:18:51 +0100 Subject: [PATCH] Add python tools to check-style and reindent make targets --- Makefile | 3 +++ ci/fix_style.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 12b26cbbe..098b7c207 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,9 @@ clean: clean-extension clean-pg_send_cancellation reindent: ${citus_abs_top_srcdir}/ci/fix_style.sh check-style: + black . --check --quiet + isort . --check --quiet + flake8 cd ${citus_abs_top_srcdir} && citus_indent --quiet --check .PHONY: reindent check-style diff --git a/ci/fix_style.sh b/ci/fix_style.sh index 69a8bbeb5..3d6e7ae83 100755 --- a/ci/fix_style.sh +++ b/ci/fix_style.sh @@ -9,6 +9,8 @@ cidir="${0%/*}" cd ${cidir}/.. citus_indent . --quiet +black . --quiet +isort . --quiet ci/editorconfig.sh ci/remove_useless_declarations.sh ci/disallow_c_comments_in_migrations.sh