Debian Codegraph @

Makefile

raw
1 BINDIR = $(PWD)/.state/env/bin
2
3 .state/env/pyvenv.cfg: requirements/dev.txt
4 rm -rf .state/env
5 python3 -m venv .state/env
6
7 # install/upgrade general requirements
8 $(BINDIR)/python -m pip install --upgrade pip setuptools wheel
9
10 # install various types of requirements
11 $(BINDIR)/python -m pip install -r requirements/dev.txt
12
13 test: .state/env/pyvenv.cfg
14 $(BINDIR)/python -m pip install .
15 $(BINDIR)/pytest
16 $(BINDIR)/python -m tests.lib
17
18 lint: .state/env/pyvenv.cfg
19 $(BINDIR)/black --check bin setup.py src tests
20 $(BINDIR)/python bin/sort.py src/trove_classifiers/__init__.py
21 $(BINDIR)/mypy src
22
23 reformat: .state/env/pyvenv.cfg
24 $(BINDIR)/black tests src
25
26 .PHONY: build test lint reformat