mirror of https://github.com/citusdata/citus.git
Add python tools to check-style and reindent make targets
parent
92dab9b441
commit
7bf3084b28
3
Makefile
3
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue