Makefile
raw| 1 | COVERAGE = $(or $(shell which coverage), $(shell which python-coverage), coverage) |
| 2 | |
| 3 | test ci_test: unit coverage flake8 pylint |
| 4 | |
| 5 | unit: |
| 6 | @poetry run pytest -n `nproc` --cov=libthumbor tests/ |
| 7 | |
| 8 | coverage: |
| 9 | @$(COVERAGE) report -m --fail-under=75 |
| 10 | |
| 11 | setup: |
| 12 | @poetry install |
| 13 | |
| 14 | flake flake8: |
| 15 | @poetry run flake8 |
| 16 | |
| 17 | pylint lint: |
| 18 | @poetry run pylint --exit-zero libthumbor tests |