Skip to content

Commit

Permalink
chore: Remove uv run prefixes from Makefile
Browse files Browse the repository at this point in the history
By calling `uv run make lint` instead, this commit drops the requirement
for uv.
  • Loading branch information
ferdinandjarisch committed Dec 9, 2024
1 parent 7394434 commit ecdaa93
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,38 @@ default:

.PHONY: lint
lint:
uv run mypy --pretty src tests
uv run ruff check src tests
uv run ruff format --check src tests
mypy --pretty src tests
ruff check src tests
ruff format --check src tests
find tests/bats \( -iname "*.bash" -or -iname "*.bats" -or -iname "*.sh" \) | xargs shellcheck
uv run reuse lint
reuse lint

.PHONY: lint-win32
lint-win32:
uv run mypy --platform win32 --exclude "gallia\/log\.py" --exclude "hr" src tests
uv run ruff check src tests
mypy --platform win32 --exclude "gallia\/log\.py" --exclude "hr" src tests
ruff check src tests

.PHONY: fmt
fmt:
uv run ruff check --fix-only src tests/pytest
uv run ruff format src tests/pytest
ruff check --fix-only src tests/pytest
ruff format src tests/pytest
find tests/bats \( -iname "*.bash" -or -iname "*.bats" -or -iname "*.sh" \) | xargs shfmt -w

.PHONY: docs
docs:
uv run $(MAKE) -C docs html
$(MAKE) -C docs html

.PHONY: tests
tests: pytest bats

.PHONY: pytest
pytest:
uv run python -m pytest -v --cov=$(PWD) --cov-report html tests/pytest
python -m pytest -v --cov=$(PWD) --cov-report html tests/pytest

.PHONY: bats
bats:
uv run ./tests/bats/run_bats.sh
./tests/bats/run_bats.sh

.PHONY: clean
clean:
uv run $(MAKE) -C docs clean
$(MAKE) -C docs clean

0 comments on commit ecdaa93

Please sign in to comment.