forked from scilus/nf-scil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sync-nf-core.sh
executable file
·36 lines (27 loc) · 1.38 KB
/
sync-nf-core.sh
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
#!/usr/bin/env bash
nfcore_ver="$(poetry show nf-core | sed -n 's/\s*version\s\+:\s\+\([0-9.]\+\).*/\1/p')"
echo "version : $nfcore_ver"
wget -O /workspaces/nf-scil/.editorconfig \
https://github.com/nf-core/tools/raw/$nfcore_ver/.editorconfig
wget -O /workspaces/nf-scil/.prettierignore \
https://github.com/nf-core/tools/raw/$nfcore_ver/.prettierignore
echo ".github" >> /workspaces/nf-scil/.prettierignore
echo ".devcontainer" >> /workspaces/nf-scil/.prettierignore
echo ".vscode" >> /workspaces/nf-scil/.prettierignore
echo "venv" >> /workspaces/nf-scil/.prettierignore
echo ".venv" >> /workspaces/nf-scil/.prettierignore
echo ".test_data" >> /workspaces/nf-scil/.prettierignore
echo ".pytest_cache" >> /workspaces/nf-scil/.prettierignore
wget -O /workspaces/nf-scil/.prettierrc.yml \
https://github.com/nf-core/tools/raw/$nfcore_ver/.prettierrc.yml
wget -O /workspaces/nf-scil/pytest.ini \
https://github.com/nf-core/tools/raw/$nfcore_ver/pytest.ini
wget -O /workspaces/nf-scil/requirements.txt \
https://github.com/nf-core/tools/raw/$nfcore_ver/requirements.txt
wget -O /workspaces/nf-scil/.requirements.nf-core.new \
https://github.com/nf-core/tools/raw/$nfcore_ver/requirements-dev.txt
touch .requirements.nf-core
cat .requirements.nf-core | xargs poetry remove
cat .requirements.nf-core.new | xargs poetry add
mv .requirements.nf-core.new .requirements.nf-core
poetry lock