-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
45 lines (33 loc) · 908 Bytes
/
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
# run tests via pytest, creates coverage report, and then opens it up
test:
coverage run -m pytest
coverage html
open htmlcov/index.html
# runs the pre-commit check command
check: mypy
pre-commit run --all-files
# opens the coverage index
coverage:
open htmlcov/index.html
# prunes remote branches from github
prune:
git remote prune origin
# removes all but main and dev local branch
gitclean:
git branch | grep -v "main" | grep -v "dev"| xargs git branch -D
# run mypy on the files
mypy:
mypy pelican/plugins/pelican_to_sqlite/*.py --no-strict-optional
# generates the README.md file --help section
cog:
cog -r README.md
# generates the README.md file --help section
docs:
cog -r README.md
cp README.md docs/index.md
# pulls from branch
sync branch:
git switch {{branch}}
git pull origin {{branch}}
pre-commit:
pre-commit run --all-files