forked from bbockelm/htcondor_file_transfer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
33 lines (23 loc) · 782 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
# This Makefile is less a build system and more a means of making running
# some development tasks more convenient.
.PHONY: all build clean lint reformat
PY_FILES := verify.py
PY_WHEEL_BASENAME := htcondor_file_transfer
all: reformat lint build
#---------------------------------------------------------------------------
reformat:
poetry run isort $(PY_FILES)
poetry run black $(PY_FILES)
lint:
-poetry run bandit -qr $(PY_FILES)
-poetry run mypy $(PY_FILES)
-poetry run pylint $(PY_FILES)
requirements.txt: poetry.lock
poetry export > requirements.txt
#---------------------------------------------------------------------------
build:
poetry build
clean:
rm -rf .mypy/ .pylint/
rm -rf dist/$(PY_WHEEL_BASENAME)-*.tar.gz
rm -rf dist/$(PY_WHEEL_BASENAME)-*.whl