Calmcode - makefiles: projects

Projects

1 2 3 4 5 6

There are a few edits we've made to our Makefile.

.PHONY: docs

install:
    pip install -r requirements.txt

dev: install
    pip install -r dev-requirements.txt

test:
    pytest tests.py

clean:
    rm -rf __pycache__ .pytest_cache

flake:
    flake8 common.py tests.py

check: flake test clean

docs:
    pdoc --html --force --output-dir docs common

Note when you copy the above file; the indentation must be a tab in a Makefile. What you copy may contain spaces instead.

dev-requirements.txt

pdoc3==0.7.4
flake8==3.7.9
pytest==5.3.5

Note that you can also find the entire project on github.