Skip to content

Commit

Permalink
black -> ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
maldoinc committed Nov 16, 2023
1 parent b193359 commit 8418aeb
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 253 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: install lint check-fmt check-ruff check-mypy test profile fix
.PHONY: install lint check-fmt check-ruff check-mypy test profile fix format

ifdef GITHUB_ACTIONS
RUFF_ARGS := --format=github
RUFF_ARGS := --output-format github
endif

install:
Expand All @@ -12,7 +12,7 @@ install:
lint: check-fmt check-ruff check-mypy

check-fmt:
.venv/bin/black . --check
.venv/bin/ruff format . --check

check-ruff:
.venv/bin/ruff wireup $(RUFF_ARGS)
Expand All @@ -26,6 +26,8 @@ test:
profile ./profile_tests $(num_runs):
./.venv/bin/python ./profile_tests.py $(num_runs)

format:
./.venv/bin/ruff format .

fix:
./.venv/bin/ruff wireup --fix
.venv/bin/black .
Loading

0 comments on commit 8418aeb

Please sign in to comment.