Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
918 commits
Select commit Hold shift + click to select a range
f9be6f9
Merge branch 'dev' of github.com:nf-core/tools into fix-remove-remote
mashehu Nov 25, 2022
b4e5ed8
only check up to date if not silent, for recursive commands. And rese…
mirpedrol Nov 25, 2022
4bb37ec
add test
mashehu Nov 25, 2022
d78abd9
Simplify redundant statement and move magic methods to top of class
awgymer Nov 25, 2022
2c3315c
Merge pull request #2054 from mirpedrol/subworkflows-test
mirpedrol Nov 25, 2022
4bf70e1
Merge pull request #2053 from awgymer/remove-duplicate-code
awgymer Nov 25, 2022
1ee11b0
Merge branch 'dev' into update-config
mirpedrol Nov 25, 2022
bbb5415
Merge pull request #2037 from mirpedrol/update-config
mirpedrol Nov 25, 2022
a60e5ea
Merge branch 'dev' into lint-name
mirpedrol Nov 25, 2022
aefa3d5
Merge branch 'dev' into fix-remove-remote
mirpedrol Nov 25, 2022
66882cc
Don't check for `docker pull` commands in `actions_ci` lint test (lef…
ewels Nov 25, 2022
a20100b
Initial org_path fixes
awgymer Nov 25, 2022
d7b7017
Remove redundant calls to get_repo_type
awgymer Nov 25, 2022
890de15
Ensure calls to load_tools_config expect a tuple
awgymer Nov 25, 2022
80dd43f
Create test yml class should set directory as the modules dir, not a …
awgymer Nov 25, 2022
8423238
TEMPORARY: Use personal fork of GitLab modules repo until PRs are ap…
awgymer Nov 25, 2022
c05ab01
update setup-python
mashehu Nov 25, 2022
73f6b49
Merge pull request #2042 from awgymer/fix-remove-remote
awgymer Nov 25, 2022
b710a74
Merge branch 'dev' into org_path-fix
awgymer Nov 25, 2022
5cf4e45
[automated] Fix code linting
nf-core-bot Nov 25, 2022
aa116ab
rm cff from template
ggabernet Nov 25, 2022
fa2b1e1
update changelog
ggabernet Nov 25, 2022
65e6f73
Apply suggestions from code review
mirpedrol Nov 25, 2022
829d8d1
update gitlab branches
mashehu Nov 25, 2022
a5b5810
Merge branch 'dev' into remove-recursive
mirpedrol Nov 25, 2022
f6bd0c4
Merge pull request #2060 from mashehu/update-gitlab-branches
mashehu Nov 25, 2022
cb21513
Merge pull request #2049 from mirpedrol/remove-recursive
mirpedrol Nov 25, 2022
da77226
Merge pull request #2035 from mirpedrol/lint-name
mirpedrol Nov 25, 2022
4c93b39
Add docstrings to new methods
awgymer Nov 25, 2022
3996d62
update gitlab branches
awgymer Nov 25, 2022
817a257
linting from pre-commit
mirpedrol Nov 24, 2022
61c428b
pre-commit changes
mirpedrol Nov 24, 2022
d1c55aa
pre-commit changes
mirpedrol Nov 24, 2022
3e2db95
pre-commit fixes
mirpedrol Nov 24, 2022
8b9d0da
check also if dependencies are installed in `check_component_installe…
mashehu Nov 25, 2022
fb4b9c3
quiet down the reinstall log messages
mashehu Nov 25, 2022
cbbccc4
Apply suggestions from code review
mirpedrol Nov 25, 2022
e540fe9
Revert gitlab URl
awgymer Nov 25, 2022
f090482
remove try/except from module regenerate dependencies
mirpedrol Nov 25, 2022
20f46e8
Merge branch 'dev' into fix-module-json-recreation
mirpedrol Nov 25, 2022
a223f7f
Merge branch 'dev' into org_path-fix
awgymer Nov 25, 2022
16beb36
Merge pull request #2057 from mashehu/update-deps
mashehu Nov 25, 2022
23be72e
Merge branch 'dev' into org_path-fix
awgymer Nov 25, 2022
c91648b
improve handling of multitple remotes
mashehu Nov 25, 2022
a41b1a7
Remove usage of path_from_remote in favour of ModulesRepo(url).repo_path
awgymer Nov 25, 2022
5e1a667
Fix calls to dir_tree_uncovered
awgymer Nov 25, 2022
d004a24
Remove the corresponding pytest
ewels Nov 25, 2022
0ba69a4
Merge pull request #2055 from ewels/actions-ci-remove-dsl1-docker
ewels Nov 25, 2022
87f15b6
allow other urls not starting with http
mirpedrol Nov 27, 2022
96fba46
modify changelog
mirpedrol Nov 27, 2022
3501683
keep track of already removed components
mirpedrol Nov 27, 2022
412663e
Merge branch 'dev' into fix-module-json-recreation
mirpedrol Nov 28, 2022
e8c9e2b
add tests for install tracking
mirpedrol Nov 28, 2022
b5f4cbd
add test to test_subworkflows.py
mirpedrol Nov 28, 2022
8cda76e
fix test
mirpedrol Nov 28, 2022
6694195
Update nf_core/components/components_utils.py
awgymer Nov 28, 2022
a5a5439
description between double quotes
mirpedrol Nov 28, 2022
7727f0f
update changelog
mirpedrol Nov 28, 2022
5d37c8b
remove duplicated log messages when removing a dependent file
mashehu Nov 28, 2022
2ac7948
change to triple quotes
mirpedrol Nov 28, 2022
fff7bea
Merge pull request #2050 from mashehu/fix-module-json-recreation
mirpedrol Nov 28, 2022
f20e34d
Merge branch 'dev' into git-urls
mirpedrol Nov 28, 2022
74f7423
Merge pull request #2061 from mirpedrol/git-urls
mirpedrol Nov 28, 2022
1810139
Merge branch 'dev' into description-apostrophes
mirpedrol Nov 28, 2022
e0e4cf2
change all_removed by removed_components and add docstring
mirpedrol Nov 28, 2022
edabcd6
Merge branch 'dev' into remove-avid-duplicates
mirpedrol Nov 28, 2022
eee09fb
Merge branch 'dev' of https://github.com/nf-core/tools into dev
mirpedrol Nov 28, 2022
c4c3479
Merge pull request #2066 from mirpedrol/description-apostrophes
mirpedrol Nov 28, 2022
58b33e8
change a name that i forgot
mirpedrol Nov 28, 2022
c8933fd
Merge branch 'remove-avid-duplicates' of https://github.com/mirpedrol…
mirpedrol Nov 28, 2022
14d38d6
Merge branch 'dev' into remove-avid-duplicates
mirpedrol Nov 28, 2022
f125045
Merge branch 'dev' into org_path-fix
awgymer Nov 28, 2022
36923a1
Set org and repo type if not required to be in an nf-core dir
awgymer Nov 28, 2022
0047a46
Update nf_core/components/components_utils.py
awgymer Nov 28, 2022
4c6bf17
Apply suggestions from code review
awgymer Nov 28, 2022
9b703c1
Merge branch 'dev' of github.com:nf-core/tools into fix-linting-multi…
mashehu Nov 28, 2022
8316a6a
Change method name to get_repo_info
awgymer Nov 28, 2022
0bdbf02
Merge pull request #2056 from awgymer/org_path-fix
awgymer Nov 28, 2022
179a36d
Merge branch 'dev' into remove-avid-duplicates
mirpedrol Nov 28, 2022
51c4107
Merge branch 'dev' of github.com:nf-core/tools into fix-linting-multi…
mashehu Nov 28, 2022
10aa3e1
Merge branch 'dev' of https://github.com/nf-core/tools into dev
mirpedrol Nov 28, 2022
57c3c1e
Merge pull request #2062 from mirpedrol/remove-avid-duplicates
mirpedrol Nov 28, 2022
7c6398a
Return the relative path of the determined base dir
awgymer Nov 28, 2022
cb1ba90
Merge branch 'dev' into fix-absolute-path-yml
awgymer Nov 28, 2022
853fe76
fix print of include statements
mirpedrol Nov 28, 2022
aa3b676
Restore old (possibly buggy) path determination
awgymer Nov 28, 2022
69329c1
Add logging print fix to config include statement for subworkflows
awgymer Nov 28, 2022
c1c6f0c
Merge branch 'dev' of https://github.com/nf-core/tools into dev
mirpedrol Nov 28, 2022
085d34b
Merge pull request #2067 from awgymer/fix-absolute-path-yml
awgymer Nov 28, 2022
a2d5a26
Update CHANGELOG.md
ggabernet Nov 28, 2022
a6af6ce
Merge pull request #2059 from ggabernet/dev
ggabernet Nov 28, 2022
ac73732
Replace nf-core with org in module templates
awgymer Nov 28, 2022
1a111d7
Merge branch 'dev' into fix-module-template-org
awgymer Nov 28, 2022
3c83495
modify subworkflow templates too
awgymer Nov 28, 2022
a545a5a
Merge branch 'fix-module-template-org' of github.com:awgymer/nf-core-…
awgymer Nov 28, 2022
5b722f0
add shell completion option
mashehu Nov 29, 2022
87a3a5b
Merge pull request #2069 from awgymer/fix-module-template-org
awgymer Nov 29, 2022
27d40d6
fix linting for non-nf-core modlues
mashehu Nov 29, 2022
a24a562
Merge pull request #1983 from fabianegli/pre-commit-run-prettier
ewels Nov 29, 2022
58b6e8f
switch to `eval` initalisation
mashehu Nov 29, 2022
a827842
fix tool/subtool cases
mashehu Nov 29, 2022
a4b9a06
install or remove components changed during an update
mirpedrol Nov 29, 2022
80de9b4
add log messages
mirpedrol Nov 29, 2022
fe4287c
Drop unused parameter
awgymer Nov 29, 2022
67e2b30
fix argument name in docstring
fabianegli Nov 29, 2022
daf3604
Update changelog for PR #2073
fabianegli Nov 29, 2022
422cda6
format modules.json after dump
fabianegli Nov 29, 2022
41e062b
make module_json_path an attribute
fabianegli Nov 29, 2022
41e3957
use the dump method to write the file
fabianegli Nov 29, 2022
bb0e294
Change return value of ModulesJson.get_all_components if there are no…
awgymer Nov 29, 2022
b6c7c53
Merge branch 'dev' of https://github.com/nf-core/tools into dev
mirpedrol Nov 30, 2022
5aa7c9c
fix bug with extra argument
mirpedrol Nov 30, 2022
5ae6c4a
Merge branch 'dev' into update-new-components
mirpedrol Nov 30, 2022
91727f3
Merge pull request #2073 from fabianegli/typo
fabianegli Nov 30, 2022
8336372
Merge branch 'dev' of https://github.com/nf-core/tools into dev
mirpedrol Nov 30, 2022
7b1aa28
resolve variable and attribute name clash
fabianegli Nov 30, 2022
59be867
warn instead of raise if pre-commit prettier fails
fabianegli Nov 30, 2022
c19c7e6
Merge branch 'dev' into format-in-modules-json-dump
fabianegli Nov 30, 2022
444401e
add test for multiple remotes
mashehu Nov 30, 2022
6e525dd
Merge branch 'fix-linting-multiple-remotes' of github.com:mashehu/too…
mashehu Nov 30, 2022
8afcaa3
require minimum supported Python version
fabianegli Nov 30, 2022
1829333
Add functionality to sort lint results
awgymer Nov 30, 2022
6154569
Update CHANGELOG.md
fabianegli Nov 30, 2022
2f9ca42
make black happy
fabianegli Nov 30, 2022
ea388b3
Merge pull request #2075 from nf-core/prevent-install-with-old-python
fabianegli Nov 30, 2022
32cbdef
Fix black error
awgymer Nov 30, 2022
620c905
Merge branch 'dev' into format-in-modules-json-dump
fabianegli Nov 30, 2022
12efff3
run prettier on test yml file after creation
fabianegli Nov 30, 2022
c43a3f0
keep custom dump args for the moment
fabianegli Nov 30, 2022
db0f969
add warning about sourcing nf-core correctly
mashehu Nov 30, 2022
09c0272
[automated] Fix code linting
nf-core-bot Nov 30, 2022
c3f576c
initialize pre-commit hooks for online code environments
mashehu Nov 30, 2022
b8c3703
update changelog
mashehu Nov 30, 2022
1e8ccce
Rename default branch after committing
Aratz Nov 22, 2022
f35fbfb
Only rename default branch if it is not master
Aratz Nov 22, 2022
6d150ff
Update changelog
Aratz Nov 22, 2022
755b9f2
Freeze tests for Python 3.8/Ubuntu 20.04
Aratz Nov 22, 2022
e2d9f0a
don't run prettier on files in bin/
mashehu Nov 30, 2022
7039644
update changelog
mashehu Nov 30, 2022
5f1dedb
Merge branch 'dev' of https://github.com/nf-core/tools into dev
mirpedrol Nov 30, 2022
07f64b9
Merge pull request #2043 from Aratz/fix_git_rename
Aratz Nov 30, 2022
ea75611
Merge branch 'dev' of https://github.com/nf-core/tools into dev
mirpedrol Nov 30, 2022
f1b71ba
Fix writing to `.nf-core.yml`
mashehu Nov 30, 2022
d51e4aa
Update nf_core/components/components_utils.py
mashehu Nov 30, 2022
0695e9d
Merge branch 'dev' into fix-writing-org
awgymer Nov 30, 2022
3a5332e
Update nf_core/lint_utils.py
awgymer Nov 30, 2022
7e119ab
Merge pull request #2080 from mashehu/ignore-bin-prettier
mashehu Nov 30, 2022
95064eb
Merge branch 'dev' of github.com:nf-core/tools into fix-linting-multi…
mashehu Nov 30, 2022
77ec31e
Merge pull request #2082 from mashehu/fix-writing-org
mashehu Nov 30, 2022
ec58342
Merge branch 'dev' into format-in-modules-json-dump
fabianegli Nov 30, 2022
7c2237c
fix some tests
mashehu Nov 30, 2022
a081e44
Merge branch 'dev' of https://github.com/nf-core/tools into dev
mirpedrol Nov 30, 2022
2fc16aa
Merge branch 'dev' of https://github.com/mirpedrol/tools into update-…
mirpedrol Nov 30, 2022
30d9c16
add helper function to get `installed_by` without relying on modules_…
mashehu Nov 30, 2022
3f0d513
apply code review suggestions from @mashehu
mirpedrol Nov 30, 2022
6671a23
go back to module_name instead of module_dir
mashehu Nov 30, 2022
252e39d
remove duplicated initialization
mashehu Nov 30, 2022
ae70b78
add test
mirpedrol Dec 1, 2022
5957d4e
remove files which are not needed anymore
mashehu Dec 1, 2022
6c42bd6
add remote-url
mashehu Dec 1, 2022
ae35b7d
Merge pull request #2072 from mirpedrol/update-new-components
mirpedrol Dec 1, 2022
38b222f
add comment about `compinit`
mashehu Dec 1, 2022
51fe1dd
don't allow double quotes in container strings regex
mirpedrol Dec 1, 2022
607cd57
avoid too many double quotes when specifying container links
mirpedrol Dec 1, 2022
2c8efb1
Merge pull request #2070 from mashehu/add-autocompletion
mashehu Dec 1, 2022
0de2066
Merge branch 'dev' into lint-container-quotes
mirpedrol Dec 1, 2022
8fadd99
Merge pull request #2085 from mirpedrol/lint-container-quotes
mirpedrol Dec 1, 2022
df56c79
Add sort_by option to pipeline linting to pass-through to module linting
awgymer Dec 1, 2022
8f36012
Update expected params for CLI test
awgymer Dec 1, 2022
09484f0
Attempt to write yaml to temporary file and prettify before writing t…
awgymer Dec 1, 2022
3273f34
Merge branch 'dev' into run-prettier-on-test-yml-after-creation
awgymer Dec 1, 2022
c89dd8c
Merge branch 'dev' into modules-lint-sort
awgymer Dec 1, 2022
60ff66f
Apply suggestions from code review
mashehu Dec 1, 2022
e27137c
add pre-commit after nf-core installation
mashehu Dec 1, 2022
89a79e5
add linting trying to connect to containers
mirpedrol Dec 1, 2022
884d20c
remove test
mashehu Dec 1, 2022
7019e20
Update nf_core/modules/test_yml_builder.py
mashehu Dec 1, 2022
142fb60
Merge branch 'dev' into add-remote-test-yml
awgymer Dec 1, 2022
38eadf1
mention test.yml formatting with Prettier
fabianegli Dec 1, 2022
c3ebdec
adapt pre-commit black Python version to gitpod's (3.9)
fabianegli Dec 1, 2022
7656f72
Merge branch 'dev' into init-pre-commit-in-code-env
fabianegli Dec 1, 2022
0776b54
use urlparse and fix mocking of api calls
mirpedrol Dec 2, 2022
0a33a77
Merge branch 'dev' into fix-linting-multiple-remotes
mirpedrol Dec 2, 2022
da49046
Merge pull request #2071 from mashehu/fix-linting-multiple-remotes
mirpedrol Dec 2, 2022
79745a7
Merge branch 'dev' into modules-lint-sort
mirpedrol Dec 2, 2022
0e0293f
Merge branch 'dev' of https://github.com/nf-core/tools into run-prett…
mirpedrol Dec 2, 2022
a1197b7
switch to `components_from_repo`
mashehu Dec 2, 2022
6a09a1f
Merge branch 'add-remote-test-yml' of github.com:mashehu/tools into a…
mashehu Dec 2, 2022
3d9329b
run prettier also for subworkflows
mirpedrol Dec 2, 2022
710dd39
correct the format of the `installed_by` entries
mashehu Dec 2, 2022
acb6eb0
Merge branch 'dev' into tracking-tests
mirpedrol Dec 2, 2022
5eef6f6
Merge pull request #2092 from mashehu/fix-incorrect-entries
mashehu Dec 2, 2022
57ad87d
Merge branch 'dev' into tracking-tests
mirpedrol Dec 2, 2022
ea9dd92
Merge pull request #2064 from mirpedrol/tracking-tests
mirpedrol Dec 2, 2022
1df556a
Merge branch 'dev' into lint-container-quotes
mirpedrol Dec 2, 2022
e8aa448
Merge branch 'dev' into modules-lint-sort
awgymer Dec 2, 2022
044a586
Merge pull request #2088 from mirpedrol/lint-container-quotes
mirpedrol Dec 2, 2022
d5fc66f
Merge pull request #2079 from mashehu/init-pre-commit-in-code-env
mashehu Dec 2, 2022
db17b5b
change requests get by head
mirpedrol Dec 2, 2022
b2a3a26
Merge pull request #2078 from nf-core/run-prettier-on-test-yml-after-…
fabianegli Dec 2, 2022
b252224
allow redirects
mirpedrol Dec 2, 2022
296fc8b
Merge branch 'dev' into lint-container-quotes
mirpedrol Dec 2, 2022
9974e0d
Merge pull request #2093 from mirpedrol/lint-container-quotes
mirpedrol Dec 2, 2022
95d88f3
change nf-core by self.org
mirpedrol Dec 2, 2022
a2dd803
add else after changing from raise to loggging
fabianegli Dec 3, 2022
2630a2a
test new logging behavior
fabianegli Dec 3, 2022
cd63560
Merge branch 'dev' into format-in-modules-json-dump
fabianegli Dec 3, 2022
c0f8c66
Merge pull request #2077 from awgymer/modules-lint-sort
awgymer Dec 5, 2022
e482fe1
Merge branch 'dev' into add-remote-test-yml
awgymer Dec 5, 2022
d25d06e
Add line to changelog
awgymer Dec 5, 2022
5aef0ac
Merge branch 'dev' into modules-lint-sort
awgymer Dec 5, 2022
455b90d
use pytest caplog for testing logging
fabianegli Dec 5, 2022
b9d9682
Merge pull request #2095 from awgymer/modules-lint-sort
awgymer Dec 5, 2022
5bc4212
fix typo
fabianegli Dec 5, 2022
c695835
fix typo
fabianegli Dec 5, 2022
c98c5c7
fix typo
fabianegli Dec 5, 2022
f0b6c48
Merge pull request #2074 from fabianegli/format-in-modules-json-dump
fabianegli Dec 5, 2022
e784f91
Merge branch 'dev' into add-remote-test-yml
awgymer Dec 5, 2022
d82ffeb
Tone down colour in successful completion but some failed processes
jfy133 Dec 5, 2022
45ea6cb
Update CHANGELOG.md
jfy133 Dec 5, 2022
d69146b
add prettier-specific pre-commit yaml
mashehu Dec 7, 2022
4c95cc6
improve log message when prettier ran
mashehu Dec 7, 2022
2b7a539
remove lines from pre-commit output
mashehu Dec 7, 2022
ebb164e
switch to `split()`
mashehu Dec 7, 2022
b3283a4
Update nf_core/lint_utils.py
mashehu Dec 7, 2022
d013299
Merge pull request #2096 from jfy133/successful-with-error-colour-change
jfy133 Dec 7, 2022
a80adbb
only print error, when there was actually an error
mashehu Dec 7, 2022
69cfe04
run components_from_repo with self.org
mirpedrol Dec 7, 2022
986c86d
Remove use of 'nf-core' and replace with 'modules_repo.repo_path'
awgymer Dec 7, 2022
c9d46e8
Merge pull request #2100 from mashehu/pre-commit-prettier-yaml
ewels Dec 7, 2022
c8f5ab1
Merge pull request #2090 from mashehu/add-remote-test-yml
ewels Dec 7, 2022
6451429
Merge branch 'dev' into fix-update-subwf
awgymer Dec 7, 2022
ca7c1d6
pipeline author between triple-quotes
mirpedrol Dec 7, 2022
e7cf881
update changelog
mirpedrol Dec 7, 2022
7c9c8ef
Gitpod dockerfile: Update Nextflow, install nf-test
ewels Dec 7, 2022
e266087
Merge branch 'dev' into gitpod-install-nf-test
ewels Dec 7, 2022
627afbe
Update CHANGELOG.md
ewels Dec 7, 2022
b8e14b8
Merge pull request #2104 from mirpedrol/template-quotes
ewels Dec 7, 2022
a8a0805
Merge pull request #2105 from nf-core/gitpod-install-nf-test
mashehu Dec 7, 2022
f6ca2de
Merge pull request #2103 from awgymer/fix-update-subwf
mirpedrol Dec 7, 2022
10e719c
reformat changelog
mashehu Dec 7, 2022
8ffdcab
update version
mashehu Dec 7, 2022
08de4ee
Merge pull request #2106 from mashehu/restructure-changelog
mashehu Dec 7, 2022
12c0119
downgrade nextflow to version available on bioconda
mashehu Dec 7, 2022
21993c6
Merge pull request #2108 from mashehu/downgrade-nf-in-gitpod
mashehu Dec 7, 2022
cd76c51
add org_path documentation
mirpedrol Dec 8, 2022
4dfd775
Update README.md
mirpedrol Dec 8, 2022
d865aa5
add suggestions from code review
mirpedrol Dec 8, 2022
24845eb
Update README.md
mirpedrol Dec 8, 2022
3121dab
Merge pull request #2109 from mirpedrol/org-path-docs
mirpedrol Dec 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "nfcore",
"image": "nfcore/gitpod:latest",
"postCreateCommand": "python -m pip install --upgrade -r ../requirements-dev.txt -e ../ && pre-commit install --install-hooks",
"remoteUser": "gitpod",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "/opt/conda/bin/autopep8",
"python.formatting.yapfPath": "/opt/conda/bin/yapf",
"python.linting.flake8Path": "/opt/conda/bin/flake8",
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle",
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle",
"python.linting.pylintPath": "/opt/conda/bin/pylint"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
}
}
}
16 changes: 16 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,19 @@ You can replicate this process locally with the following commands:
nf-core create -n testpipeline -d "This pipeline is for testing"
nf-core lint nf-core-testpipeline
```

## GitHub Codespaces

This repo includes a devcontainer configuration which will create a GitHub Codespaces for Nextflow development! This is an online developer environment that runs in your browser, complete with VSCode and a terminal.

To get started:

- Open the repo in [Codespaces](https://github.com/nf-core/tools/codespaces)
- Tools installed
- nf-core
- Nextflow

Devcontainer specs:

- [DevContainer config](.devcontainer/devcontainer.json)
- [Dockerfile](.devcontainer/Dockerfile)
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ body:
attributes:
label: System information
description: |
* Nextflow version _(eg. 21.10.3)_
* Nextflow version _(eg. 22.10.1)_
* Hardware _(eg. HPC, Desktop, Cloud)_
* Executor _(eg. slurm, local, awsbatch)_
* OS _(eg. CentOS Linux, macOS, Linux Mint)_
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/create-lint-wf.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Create a pipeline and run nf-core linting
on: [push, pull_request]
on:
push:
branches:
- dev
pull_request:
release:
types: [published]

# Cancel if a newer run is started
concurrency:
Expand All @@ -17,16 +23,16 @@ jobs:
strategy:
matrix:
NXF_VER:
- "21.10.3"
- "22.10.1"
- "latest-everything"
steps:
# Get the repo code
- uses: actions/checkout@v2
- uses: actions/checkout@v3
name: Check out source-code repository

# Set up nf-core/tools
- name: Set up Python 3.8
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand All @@ -42,7 +48,7 @@ jobs:
version: ${{ matrix.NXF_VER }}

# Install the Prettier linting tools
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3

- name: Install Prettier
run: npm install -g prettier
Expand Down Expand Up @@ -80,7 +86,7 @@ jobs:

# Run nf-core linting
- name: nf-core lint
run: nf-core --log-file log.txt lint --dir nf-core-testpipeline --fail-ignored --fail-warned
run: nf-core --log-file log.txt --hide-progress lint --dir nf-core-testpipeline --fail-ignored --fail-warned

# Run the other nf-core commands
- name: nf-core list
Expand All @@ -96,13 +102,13 @@ jobs:
run: nf-core --log-file log.txt bump-version --dir nf-core-testpipeline/ 1.1

- name: nf-core lint in release mode
run: nf-core --log-file log.txt lint --dir nf-core-testpipeline --fail-ignored --fail-warned --release
run: nf-core --log-file log.txt --hide-progress lint --dir nf-core-testpipeline --fail-ignored --fail-warned --release

- name: nf-core modules install
run: nf-core --log-file log.txt modules install fastqc --dir nf-core-testpipeline/ --force

- name: nf-core modules install gitlab
run: nf-core --log-file log.txt modules --git-remote https://gitlab.com/nf-core/modules-test.git --branch main-restructure install fastqc --force --dir nf-core-testpipeline/
run: nf-core --log-file log.txt modules --git-remote https://gitlab.com/nf-core/modules-test.git --branch main install fastqc --force --dir nf-core-testpipeline/

- name: nf-core modules list local
run: nf-core --log-file log.txt modules list local --dir nf-core-testpipeline/
Expand All @@ -115,7 +121,7 @@ jobs:

- name: Upload log file artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: nf-core-log-file
path: log.txt
16 changes: 11 additions & 5 deletions .github/workflows/create-test-wf.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Create a pipeline and test it
on: [push, pull_request]
on:
push:
branches:
- dev
pull_request:
release:
types: [published]

# Cancel if a newer run is started
concurrency:
Expand All @@ -17,14 +23,14 @@ jobs:
strategy:
matrix:
NXF_VER:
- "21.10.3"
- "22.10.1"
- "latest-everything"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
name: Check out source-code repository

- name: Set up Python 3.7
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.7

Expand All @@ -45,7 +51,7 @@ jobs:

- name: Upload log file artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: nf-core-log-file
path: log.txt
4 changes: 2 additions & 2 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
name: Check out source-code repository

- name: Set up Python 3.7
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.7

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/fix-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3

- name: Install Prettier
run: npm install -g prettier @prettier/plugin-php
Expand All @@ -39,11 +39,11 @@ jobs:
options: "--color"

- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: python-isort
uses: isort/isort-action@v0.1.0
uses: isort/isort-action@v1.0.0
with:
isortVersion: "latest"
requirementsFiles: "requirements.txt requirements-dev.txt"
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Lint tools code formatting
on: [push, pull_request]
on:
push:
branches:
- dev
pull_request:
release:
types: [published]

# Cancel if a newer run is started
concurrency:
Expand All @@ -10,9 +16,9 @@ jobs:
EditorConfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3

- name: Install editorconfig-checker
run: npm install -g editorconfig-checker
Expand All @@ -24,9 +30,9 @@ jobs:
Prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3

- name: Install Prettier
run: npm install -g prettier
Expand All @@ -37,7 +43,7 @@ jobs:
PythonBlack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Check code lints with Black
uses: psf/black@stable
Expand Down Expand Up @@ -68,14 +74,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out source-code repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: python-isort
uses: isort/isort-action@v0.1.0
uses: isort/isort-action@v1.1.0
with:
isortVersion: "latest"
requirementsFiles: "requirements.txt requirements-dev.txt"
2 changes: 1 addition & 1 deletion .github/workflows/push_dockerhub_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build nfcore/tools:dev docker image
run: docker build --no-cache . -t nfcore/tools:dev
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push_dockerhub_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build nfcore/tools:latest docker image
run: docker build --no-cache . -t nfcore/tools:latest
Expand All @@ -38,5 +38,5 @@ jobs:
docker tag nfcore/tools:latest nfcore/tools:${{ github.event.release.tag_name }}
docker push nfcore/tools:${{ github.event.release.tag_name }}
docker push nfcore/gitpod:latest
docker tag nfcore/gitpod:latest nfcore/tools:${{ github.event.release.tag_name }}
docker tag nfcore/gitpod:latest nfcore/gitpod:${{ github.event.release.tag_name }}
docker push nfcore/gitpod:${{ github.event.release.tag_name }}
52 changes: 52 additions & 0 deletions .github/workflows/pytest-frozen-ubuntu-20.04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Python tests Ubuntu-20.04 (frozen)
# This workflow is triggered on pushes and PRs to the repository.
# Only run if we changed a Python file
on:
push:
branches:
- dev
pull_request:
release:
types: [published]

# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
pytest:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
name: Check out source-code repository

- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"

- name: Install python dependencies
run: |
python -m pip install --upgrade pip -r requirements-dev.txt
pip install -e .

- name: Downgrade git to the Ubuntu official repository's version
run: |
sudo apt remove git git-man
sudo add-apt-repository --remove ppa:git-core/ppa
sudo apt install git

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: "latest-everything"

- name: Test with pytest
run: python3 -m pytest tests/ --color=yes --cov-report=xml --cov-config=.github/.coveragerc --cov=nf_core

- uses: codecov/codecov-action@v1
name: Upload code coverage report
with:
if: success()
token: ${{ secrets.CODECOV_TOKEN }}
10 changes: 7 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name: Python tests
# Only run if we changed a Python file
on:
push:
branches:
- dev
pull_request:
release:
types: [published]

# Cancel if a newer run is started
concurrency:
Expand All @@ -15,14 +19,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
name: Check out source-code repository

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rich-codex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.x
cache: pip
Expand Down
Loading