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

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

Merged
merged 4 commits into from
Aug 2, 2024

Conversation

mirpedrol
Copy link
Member

Part of #2340 and #2342

nf_core/pipelines/create/custompipeline.py Outdated Show resolved Hide resolved
nf_core/pipelines/create/custompipeline.py Outdated Show resolved Hide resolved
tests/test_create.py Outdated Show resolved Hide resolved
tests/test_create.py Outdated Show resolved Hide resolved
tests/test_create.py Outdated Show resolved Hide resolved
tests/test_create.py Outdated Show resolved Hide resolved
".prettierignore",
".prettierrc.yml",
".github/workflows/fix-linting.yml",
],
}
# 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
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
35 checks passed
@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