-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
36 lines (27 loc) · 892 Bytes
/
Makefile
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
test-install:
pip install -r requirements_test.txt
cp tests/.env.example tests/.env
format-install:
pip install -r requirements_format.txt
docs-install:
pip install -r docs/requirements.txt
version-tag:
git describe --tags > version_tag
docs:
cd docs && $(MAKE) html
# I use this locally to encrypt the creds.json
encrypt-test-files:
age -r age1ajzzxt7ey6gxkfjcynw2tnwd95gggcz7t5jmt2pr8jga54tl39rsdxy9fn -o tests/creds.json.age tests/creds.json
decrypt-test-files:
echo "$(AGE_KEY)" > tests/age_key.txt
./age/age --decrypt -i tests/age_key.txt -o tests/creds.json tests/creds.json.age
# You can use this to run the tests locally
test:
. tests/.env && python -m unittest tests.integration
BLACK_FILES=*.py gspread_asyncio/*.py tests/*.py docs/*.py
format:
black $(BLACK_FILES)
isort $(BLACK_FILES)
format-check:
black --check $(BLACK_FILES)
isort --check $(BLACK_FILES)