Skip to content

Template: add option to exclude code linters for custom pipeline template#3084

Merged
mirpedrol merged 4 commits into
nf-core:devfrom
mirpedrol:opt-out-linters
Aug 2, 2024
Merged

Template: add option to exclude code linters for custom pipeline template#3084
mirpedrol merged 4 commits into
nf-core:devfrom
mirpedrol:opt-out-linters

Conversation

@mirpedrol

Copy link
Copy Markdown
Member

Part of #2340 and #2342

Comment thread nf_core/pipelines/create/custompipeline.py Outdated
Comment thread nf_core/pipelines/create/custompipeline.py Outdated
Comment thread tests/test_create.py Outdated
Comment thread tests/test_create.py Outdated
Comment thread tests/test_create.py Outdated
Comment thread tests/test_create.py Outdated
mirpedrol and others added 3 commits July 29, 2024 16:41
Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
],
}
# Get list of files we're skipping with the supplied skip keys
self.skip_paths = set(sp for k in skip_paths for sp in skippable_paths[k])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider the ability to include or exclude specific files via the .nf-core.yml here. Not clear how we should do this yet but it could be a specific key for the .nf-core.yml:

exclude:
  - .github/workflows/fix-linting.yml
  - .github/workflows/clean-up.yml
include:
  - .github/workflows/ci.yml

This would override the broad categories by the wizard. It could be bypassed when using the TUI for now, consider it an advanced feature.

@mirpedrol mirpedrol merged commit 1c09b35 into nf-core:dev Aug 2, 2024
@mirpedrol mirpedrol deleted the opt-out-linters branch August 2, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants