Skip to content

Commit f86cfb6

Browse files
committed
add fix
1 parent b1c31e3 commit f86cfb6

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ lint:
1616
format:
1717
python -m ruff format --check .
1818

19+
.PHONY: fix
20+
fix: fix-lint fix-format
21+
22+
.PHONY: fix-lint
23+
fix-lint:
24+
python -m ruff check --fix .
25+
26+
.PHONY: fix-format
27+
fix-format:
28+
python -m ruff format .
29+
30+
1931
.PHONY: unittest
2032
unittest: ## Run unittest
2133
python -m pytest $(ARGS) test/unit/

ci.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
EXIT_STATUS=0
44

55
if ! make lint ; then
6-
echo "Please run command 'make lint' on your local and commit the result"
6+
echo "Please run command 'make fix' on your local and commit the result"
77
EXIT_STATUS=1
88
fi
99
if ! make format ; then
10-
echo "Please run command 'make format' on your local and commit the result"
10+
echo "Please run command 'make fix' on your local and commit the result"
1111
EXIT_STATUS=1
1212
fi
1313
if ! make unittest ARGS=--junitxml=./test/unit/junit.xml ; then

0 commit comments

Comments
 (0)