-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathJustfile
46 lines (32 loc) · 1.11 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This is the main Justfile for the EPSchedule repo.
# To install Just, see: https://github.com/casey/just#installation
# This causes the .env file to be read by Just.
set dotenv-load := true
# Allow for positional arguments in Just receipes.
set positional-arguments := true
default: format check test
install:
pip install -r requirements.txt
format:
autoflake . --remove-all-unused-imports --quiet --in-place -r --exclude venv
isort . --profile black --skip venv
black . --exclude venv
check:
autoflake . --remove-all-unused-imports --quiet --in-place -r --exclude venv --check
isort . --profile black --skip venv --check
black . --exclude venv --check
#mypy .
test PATH=".":
pytest --ignore venv {{PATH}}
test-verbose PATH=".":
pytest --ignore venv -vv --log-cli-level=INFO {{PATH}}
run *FLAGS:
python main.py {{FLAGS}}
deploy:
gcloud app deploy --project=epschedule-v2
update-schedules *FLAGS:
python update.py {{FLAGS}} schedules
update-photos *FLAGS:
python update.py {{FLAGS}} photos
update-lunches *FLAGS:
python update.py {{FLAGS}} lunches