-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 662 Bytes
/
Makefile
File metadata and controls
36 lines (25 loc) · 662 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
35
36
# This file is part of convertdate.
# http://github.com/fitnr/convertdate
# Licensed under the MIT license:
# http://opensource.org/licenses/MIT
# Copyright (c) 2016, fitnr <fitnr@fakeisthenewreal>
.PHONY: all htmlcov test pylint cov format publish build clean
all:
htmlcov: | test
python -m coverage html
test:
python -m unittest
pylint:
pylint src/convertdate
cov:
python -m coverage run --branch --source=convertdate -m unittest
python -m coverage report
format:
black src/ tests/
isort src/convertdate/*.py src/convertdate/data/*.py tests/*.py
publish: | build
twine upload dist/*
build: | clean
python -m build
clean:
rm -rf build dist