Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Makefile #81

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
.PHONY: check
check: ## Check code formatting and import sorting
python3 -m black --check .
ruff .
python3 -m ruff check .

.PHONY: fix
fix: ## Fix code formatting, linting and sorting imports
python3 -m black .
ruff --fix .
python3 -m ruff --fix .

.PHONY: local
local: pip_update ## Install local requirements and dependencies
Expand Down Expand Up @@ -41,12 +41,12 @@ ifeq (simpletest,$(firstword $(MAKECMDGOALS)))
$(eval $(simpletestargs):;@true)
endif

.PHONY: simpletest # Run debug tests
simpletest:
.PHONY: simpletest
simpletest: ## Run debug tests
python3 -m unittest $(simpletestargs)

.PHONY: test # Run full test and coverage
test:
.PHONY: test
test: ## Run full test and coverage
python3 -m coverage run -m unittest
python3 -m coverage html
python3 -m coverage report
Expand Down