generated from bitwarden/template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
76 lines (60 loc) · 1.46 KB
/
Taskfile.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# https://taskfile.dev
version: '3'
tasks:
fmt:
silent: true
cmds:
- pipenv run black .
lint:
silent: true
cmds:
- pipenv run pylint --rcflie pylintrc src tests
lint:single:
silent: true
cmds:
- pipenv run pylint --rcflie pylintrc src {{.CLI_ARGS}}
type:
silent: true
cmds:
- pipenv run pytype src
update:
silent: true
cmds:
- |
deps=$(pipenv requirements --exclude-markers | tail -n +2 | awk '{print "\t\""$0"\","}')
export DEPS=$(printf "$deps")
envsubst < pyproject.toml.tpl > pyproject.toml
install:
silent: true
cmds:
- task: update
- pipenv run python -m pip install -e .
test:unit:
cmds:
- pipenv run pytest tests
test:unit:single:
cmds:
- pipenv run pytest {{.CLI_ARGS}}
test:cov:
cmds:
- pipenv run pytest --cov-report term --cov=src tests
test:cov:detailed:
cmds:
- pipenv run pytest --cov-report term-missing --cov=src tests
test:e2e:lint:
cmds:
- pipenv run bwwl lint --files tests/fixtures
test:e2e:lint:single:
cmds:
- pipenv run bwwl lint --files tests/fixtures/test.yml
test:e2e:actions:add:
cmds:
- pipenv run bwwl actions --output test.json add bitwarden/sm-action
test:e2e:actions:update:
cmds:
- pipenv run bwwl actions --output test.json update
dist:
silent: true
cmds:
- task: update
- pipenv run python -m build