-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
35 lines (31 loc) · 1.29 KB
/
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
# From https://github.com/biocore/qurro/blob/master/Makefile
# (and https://github.com/fedarko/pleuk/blob/master/Makefile, but that one
# isn't public on GitHub yet)
.PHONY: test stylecheck style
# The -B in the invocation of python prevents this from creating pycache stuff.
# --cov-report xml is needed to make this visible to Codecov;
# --cov-report term is needed in order to print a fancy table on the terminal;
# --cov-report html creates a "htmlcov/" folder in the root of the repository.
#
# The reason for the --ignore strainflye/_cli.py is that pytest kept throwing
# a strange error when trying to read through this file, for some reason (and
# this was specific to the Python 3.6 build of strainFlye -- the Python 3.7
# build worked fine). This bypasses that problem.
#
# Also, for reference -- if you wanna see all print output during testing, add
# -s to the end of this command. Useful when debugging stuff.
test:
python3 -B -m pytest \
strainflye/ \
--doctest-modules \
--ignore strainflye/_cli.py \
--cov-report xml \
--cov-report term \
--cov-report html \
--cov strainflye
stylecheck:
@# Ignoring E203 per https://github.com/psf/black/issues/315
flake8 --ignore=W503,E203 strainflye/ setup.py
black --check -l 79 strainflye/ setup.py
style:
black -l 79 strainflye/ setup.py