-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 881 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: help
help:
@echo "Available targets:"
@echo " - help : Print this help message."
@echo " - clean : Remove generated files."
@echo " - coding-style : Run coding style tools."
@echo " - publish : Publish package to PyPI."
@echo " - quick-test : Run coding style tools and only the test for the latest python and the current git revision."
@echo " - test : Run coding style tools and tests."
.PHONY: all
all: help
.PHONY: clean
clean:
@rm -rf build dist editorconfig_checker.egg-info editorconfig_checker/bin
.PHONY: coding-style
coding-style:
@flake8 --ignore E501 setup.py
.PHONY: publish
publish: clean test
@python3 setup.py sdist
@twine upload dist/*
.PHONY: quick-test
quick-test: coding-style
docker build -t ec-quick-test .
docker run ec-quick-test ec -version
.PHONY: test
test: coding-style
@bash run-tests.sh