Skip to content

Commit

Permalink
chore(tooling): Swap out black for ruff format as Python format c…
Browse files Browse the repository at this point in the history
…hecker
  • Loading branch information
alerque committed Oct 25, 2023
1 parent d488856 commit fd5eedf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ node_modules: yarn.lock
yarn.lock: package.json
$(YARN) install

PHONY_DEVELOPER_TARGETS = lint luacheck checkmake ruff black tagrelease release-preview release docker docker-dep-check docker-ghcr-to-hub docker-build-push
PHONY_DEVELOPER_TARGETS = lint luacheck checkmake ruff tagrelease release-preview release docker docker-dep-check docker-ghcr-to-hub docker-build-push
.PHONY: $(PHONY_DEVELOPER_TARGETS)

if DEVELOPER

lint: luacheck checkmake ruff black
lint: luacheck checkmake ruff ruff-format

luacheck:
$(LUACHECK) .
Expand All @@ -142,10 +142,10 @@ checkmake:
$(GIT) ls-files '*.mk' | $(XARGS) -n1 checkmake

ruff:
$(GIT) ls-files '*.py' '*.py.in' | $(XARGS) $(RUFF)
$(GIT) ls-files '*.py' '*.py.in' | $(XARGS) $(RUFF) check

black:
$(GIT) ls-files '*.py' '*.py.in' | $(XARGS) $(BLACK) --check
ruff-format:
$(GIT) ls-files '*.py' '*.py.in' | $(XARGS) $(RUFF) format --check

RELTYPE ?=

Expand Down
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ AM_COND_IF([DEPENDENCY_CHECKS], [
# Developer tooling deps
AM_COND_IF([DEVELOPER], [
AX_PROGVAR([black])
AX_PROGVAR([checkmake])
AX_PROGVAR([docker])
AX_PROGVAR([luacheck])
Expand Down

0 comments on commit fd5eedf

Please sign in to comment.