Add python tools to check-style and reindent make targets

pull/6700/head
Jelte Fennema 2023-02-08 13:18:51 +01:00
parent 92dab9b441
commit 7bf3084b28
2 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,9 @@ clean: clean-extension clean-pg_send_cancellation
reindent: reindent:
${citus_abs_top_srcdir}/ci/fix_style.sh ${citus_abs_top_srcdir}/ci/fix_style.sh
check-style: check-style:
black . --check --quiet
isort . --check --quiet
flake8
cd ${citus_abs_top_srcdir} && citus_indent --quiet --check cd ${citus_abs_top_srcdir} && citus_indent --quiet --check
.PHONY: reindent check-style .PHONY: reindent check-style

View File

@ -9,6 +9,8 @@ cidir="${0%/*}"
cd ${cidir}/.. cd ${cidir}/..
citus_indent . --quiet citus_indent . --quiet
black . --quiet
isort . --quiet
ci/editorconfig.sh ci/editorconfig.sh
ci/remove_useless_declarations.sh ci/remove_useless_declarations.sh
ci/disallow_c_comments_in_migrations.sh ci/disallow_c_comments_in_migrations.sh