There was an error while loading. Please reload this page.
1 parent 0621ced commit 0b2ca94Copy full SHA for 0b2ca94
1 file changed
Makefile
@@ -1,6 +1,6 @@
1
-all: format-check test
+all: test
2
3
-SRCS := $(shell find . -name '*.py')
+SRCS := $(shell git ls-files *.py)
4
5
.PHONY: run
6
run:
@@ -12,11 +12,11 @@ test:
12
13
.PHONY: format
14
format:
15
- @yapf -i $(SRCS)
+ yapf -i $(SRCS)
16
17
.PHONY: format-check
18
format-check:
19
- @yapf --diff $(SRCS) \
+ yapf --diff $(SRCS) \
20
|| (echo "Some files require formatting. Run 'make format' to fix." && exit 1)
21
22
ifndef VERBOSE
0 commit comments