You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
510B

  1. include .env
  2. FILE = $(shell find . -path "./y????/p??.py" -type f | xargs ls -rt | tail -n 1)
  3. PYTHONPATH = .
  4. export
  5. main: venv/ $(DATA)
  6. venv/bin/python -u toolkit.py $(FILE)
  7. flake: venv/
  8. venv/bin/flake8 --exclude=venv/
  9. venv/: requirements.txt
  10. rm -rf venv/
  11. ~/.pyenv/versions/3.8.0/bin/python -m venv venv
  12. venv/bin/pip install -r requirements.txt
  13. touch requirements.txt venv/
  14. # install flake8 git hook
  15. # echo 'venv/bin/flake8 --exclude=venv/' > .git/hooks/pre-commit
  16. # chmod +x .git/hooks/pre-commit