Skip to content

Commit

Permalink
Add python tools to check-style and reindent make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Feb 10, 2023
1 parent 92dab9b commit 7bf3084
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions ci/fix_style.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bf3084

Please sign in to comment.