-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
152 lines (114 loc) · 2.87 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: "3"
includes:
std:
taskfile: ~/.local/task/better-sre/config/Taskfile.yml
dir: ~/.local/task/better-sre/config # global path
optional: true #
chain:
taskfile: packages/chain/Taskfile.yml
dir: packages/chain/
optional: true #
rss:
taskfile: packages/rsshub/Taskfile.yml
dir: packages/rsshub/
optional: true #
csv:
taskfile: packages/csv-parser/
dir: packages/csv-parser/
optional: true #
polars:
taskfile: packages/polars-cli/
dir: packages/polars-cli/
optional: true #
discord:
taskfile: packages/discord-bot/
dir: packages/discord-bot/
optional: true #
bot:
taskfile: packages/bot-cli/
dir: packages/bot-cli/
optional: true #
word:
taskfile: packages/wordlist/
dir: packages/wordlist/
optional: true #
################################################################################################
#
# global vars: https://taskfile.dev/#/usage?id=variables
#
vars:
VAR1: "some-var"
# global env:
env:
ENV1: testing
# env file:
dotenv:
- .env
################################################################################################
tasks:
setup:
cmds:
- curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- pyenv install 3.9.9
- pyenv virtualenv 3.9.9 py39-toolbox
- pyenv local py39-toolbox
- pip install --upgrade pip
- pip install -U pipx
- pipx ensurepath
- pipx --version
install:tools:
cmds:
- pipx install cookiecutter
- cookiecutter --version
- pipx install poetry
- poetry --version
- poetry config virtualenvs.in-project true
- poetry config --list
install:
cmds:
- pip3 install -r requirements.txt
install:dev:
cmds:
- pip3 install -r requirements-dev.txt
init:
cmds:
- task init:env
- task install
init:env:
cmds:
- cp .env.local .env
##################################################################################################
new:
cmds:
- poetry new ${NEW_PROJECT_NAME} --src
dir: packages/
new2:
dir: packages
cmds:
- cookiecutter gh:jacebrowning/template-python -f
run:eth:
cmds:
- task: chain:run
run:
cmds:
- task: rss:run
##################################################################################################
quick:
cmds:
- task: commit
- task: commit
# - task: pull
# - task: push
commit:
cmds:
- git add .
- git commit -m "update"
ignore_error: true
pull:
cmds:
- git config pull.rebase false
- git pull origin main
push:
cmds:
- git push origin main --tags
- repo_url=`git remote -v | grep push | awk -F ":" '{print $2}' | awk -F ".git" '{print "https://github.com/"$1}'`; open $repo_url