| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
.PHONY: all htmlcov test deploy format |
| 9 |
all: |
| 10 |
|
| 11 |
htmlcov: | test |
| 12 |
python -m coverage html |
| 13 |
|
| 14 |
test: |
| 15 |
python -m unittest |
| 16 |
|
| 17 |
pylint: |
| 18 |
pylint convertdate/ tests |
| 19 |
|
| 20 |
cov: |
| 21 |
python -m coverage run --branch --source=convertdate -m unittest |
| 22 |
python -m coverage report |
| 23 |
|
| 24 |
format: |
| 25 |
black src/ tests/ |
| 26 |
isort src/convertdate/*.py src/convertdate/data/*.py tests/*.py |
| 27 |
|
| 28 |
deploy: |
| 29 |
rm -rf dist build |
| 30 |
python -m build |
| 31 |
twine upload dist/* |
| 32 |
git push; git push --tags |