-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (19 loc) · 696 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (19 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TEST_PATH=./
clean-pyc:
find . -name '*.pyc' -exec rm --force {} +
find . -name '*.pyo' -exec rm --force {} +
find . -name '*~' -exec rm --force {} +
clean-build:
rm --force --recursive build/
rm --force --recursive dist/
rm --force --recursive *.egg-info
lint:
rm -f ._lint_fail
flake8 setup.py yandex_weather_api || touch ._lint_fail
mypy --ignore-missing-imports yandex_weather_api || touch ._lint_fail
pylint --output-format=colorized --reports=no \
setup.py yandex_weather_api || touch ._lint_fail
if [ -f ._lint_fail ]; then echo Lint fail; rm -f ._lint_fail; exit 1; fi
@echo Lint ok
test: clean-pyc
py.test --verbose --cov=yandex_weather_api --color=yes $(TEST_PATH)