Skip to content

Commit 0b2ca94

Browse files
authored
Check only files under Git and change default make target (#6)
1 parent 0621ced commit 0b2ca94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
all: format-check test
1+
all: test
22

3-
SRCS := $(shell find . -name '*.py')
3+
SRCS := $(shell git ls-files *.py)
44

55
.PHONY: run
66
run:
@@ -12,11 +12,11 @@ test:
1212

1313
.PHONY: format
1414
format:
15-
@yapf -i $(SRCS)
15+
yapf -i $(SRCS)
1616

1717
.PHONY: format-check
1818
format-check:
19-
@yapf --diff $(SRCS) \
19+
yapf --diff $(SRCS) \
2020
|| (echo "Some files require formatting. Run 'make format' to fix." && exit 1)
2121

2222
ifndef VERBOSE

0 commit comments

Comments
 (0)