-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
32 lines (24 loc) · 777 Bytes
/
justfile
File metadata and controls
32 lines (24 loc) · 777 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
# run tests via pytest, creates coverage report, and then opens it up
test:
coverage run -m pytest
coverage html --omit=src/toggl_to_sqlite/cli.py--omit=src/toggl_to_sqlite/cli.py
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 src/toggl_to_sqlite/*.py --no-strict-optional --ignore-missing-imports
# generates the README.md file --help section
docs:
cog -r README.md
cp README.md docs/index.md