Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

21 lines
605B

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