retronews

a featureful fork of the luke8086/retronews hn+lobste.rs tui
Log | Files | Refs | README | LICENSE

Makefile (448B)


      1 SCRIPTS = retronews.py tests.py
      2 
      3 .PHONY: venv-check
      4 venv-check:
      5 ifeq ("$(VIRTUAL_ENV)","")
      6 	@echo "Venv is not active, run make venv-build and \`make venv-activate\`"
      7 	@echo
      8 	exit 1
      9 endif
     10 
     11 venv-build:
     12 	python3 -m venv .venv
     13 
     14 venv-activate:
     15 	@echo "source .venv/bin/activate"
     16 
     17 install: venv-check
     18 	pip install black isort flake8 mypy
     19 
     20 lint: venv-check
     21 	black $(SCRIPTS)
     22 	isort $(SCRIPTS)
     23 	flake8 $(SCRIPTS)
     24 	mypy $(SCRIPTS)
     25 
     26 test:
     27 	python3 tests.py