Skip to content

Commit

Permalink
fix ruff command
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Sep 22, 2024
1 parent 1f3e95a commit 37f7880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ ruff-all:
ruff check .

ruff:
ruff --fix $(shell git diff --name-only --staged | grep -E '\.py$$|\/pyproject.toml$$')
ruff check --fix $(shell git diff --name-only --staged | grep -E '\.py$$|\/pyproject.toml$$')

ruff-all-docker:
docker exec care bash -c "ruff check ."

ruff-docker:
docker exec care bash -c "ruff --fix $(shell git diff --name-only --staged | grep -E '\.py$$|\/pyproject.toml$$')"
docker exec care bash -c "ruff check --fix $(shell git diff --name-only --staged | grep -E '\.py$$|\/pyproject.toml$$')"

%:
docker compose exec backend bash -c "python manage.py $*"

0 comments on commit 37f7880

Please sign in to comment.