Skip to content

Commit

Permalink
add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Oct 10, 2024
1 parent b1c31e3 commit f86cfb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ lint:
format:
python -m ruff format --check .

.PHONY: fix
fix: fix-lint fix-format

.PHONY: fix-lint
fix-lint:
python -m ruff check --fix .

.PHONY: fix-format
fix-format:
python -m ruff format .


.PHONY: unittest
unittest: ## Run unittest
python -m pytest $(ARGS) test/unit/
Expand Down
4 changes: 2 additions & 2 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
EXIT_STATUS=0

if ! make lint ; then
echo "Please run command 'make lint' on your local and commit the result"
echo "Please run command 'make fix' on your local and commit the result"
EXIT_STATUS=1
fi
if ! make format ; then
echo "Please run command 'make format' on your local and commit the result"
echo "Please run command 'make fix' on your local and commit the result"
EXIT_STATUS=1
fi
if ! make unittest ARGS=--junitxml=./test/unit/junit.xml ; then
Expand Down

0 comments on commit f86cfb6

Please sign in to comment.