Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linting: Remove 'defaults' from conda environment.yml file. #3029

Merged
merged 6 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- Fix linting fail on nfcore_external_java_deps if nf_schema is used ([#2976](https://github.com/nf-core/tools/pull/2976))
- Conda module linting: Include package name in log file ([#3014](https://github.com/nf-core/tools/pull/3014))
- Remove defaults from conda environment.yml file. ([#3029](https://github.com/nf-core/tools/pull/3029))

### Download

Expand Down
1 change: 0 additions & 1 deletion nf_core/module-template/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ name: "{{ component_name_underscore }}"
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- "{{ bioconda if bioconda else 'YOUR-TOOL-HERE' }}"

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nf_core/pipeline-template/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ profiles {
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
conda.channels = ['conda-forge', 'bioconda', 'defaults']
conda.channels = ['conda-forge', 'bioconda']
apptainer.enabled = false
}
mamba {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_load_pipeline_config(self):
# def test_load_conda_env(self):
# """Load the pipeline Conda environment.yml file"""
# self.pipeline_obj._load_conda_environment()
# assert self.pipeline_obj.conda_config["channels"] == ["conda-forge", "bioconda", "defaults"]
# assert self.pipeline_obj.conda_config["channels"] == ["conda-forge", "bioconda"]

def test_list_files_git(self):
"""Test listing pipeline files using `git ls`"""
Expand Down
Loading