-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
38 lines (28 loc) · 713 Bytes
/
justfile
File metadata and controls
38 lines (28 loc) · 713 Bytes
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
src_dir := quickfund
test_dir := tests
deps_file := requirements/install.txt
run:
python -m quickfund 样例基金代码2.txt
test:
pytest {{test_dir}}
release:
scripts/release.py
format:
# autopep8 --in-place --recursive --aggressive --aggressive --select E501 --max-line-length 88 .
isort .
black .
type-check:
mypy .
pyright
# TODO pytype, pyre-check
lint:
find . -type f -name "*.py" | xargs pylint
unused-imports:
pycln --diff {{src_dir}} {{test_dir}}
reqs:
pipreqs --use-local --encoding utf-8 {{src_dir}} --savepath {{deps_file}}
sort {{deps_file}} -o {{deps_file}}
todo:
rg "# TODO|# FIXME" --glob !justfile
clean:
echo "No clean job"