-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
35 lines (31 loc) · 988 Bytes
/
Makefile
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
35
.PHONY: quality style test clean
# Check code quality
quality:
@echo Checking code and doc quality.
black --check --line-length 90 --target-version py36 podium tests
isort --check-only podium tests
docformatter podium tests --check --recursive \
--wrap-descriptions 80 --wrap-summaries 80 \
--pre-summary-newline --make-summary-multi-line
flake8 podium tests
# Enforce code quality in source
style:
@echo Applying code and doc style changes.
black --line-length 90 --target-version py36 podium tests
isort podium tests
docformatter podium tests -i --recursive \
--wrap-descriptions 80 --wrap-summaries 80 \
--pre-summary-newline --make-summary-multi-line
# Run tests
test:
@echo Running tests.
python -m pytest -sv tests
# Clean up the project
clean:
@echo Cleaning up the project.
rm -rf .pytest_cache/
rm -rf podium.egg-info/
rm -rf dist/
rm -rf build/
find . | grep -E '(__pycache__|\.pyc|\.pyo$$)' | xargs rm -rf
$(MAKE) -C docs clean