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

allow mixed str and dict in lint config #3228

Merged
merged 25 commits into from
Dec 3, 2024

Conversation

mashehu
Copy link
Contributor

@mashehu mashehu commented Oct 17, 2024

we should probably rewrite this into a TypedDict or similar in the future.

@Joon-Klaps
Copy link
Contributor

Could you write a quick test for this as well?

Copy link
Contributor

@Joon-Klaps Joon-Klaps left a comment

Choose a reason for hiding this comment

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

Tried my best but am not entirely following with all changes due to a lack of knowledge on the codebase of nf-tools.
Tested it also again on my pipeline & new failed tests were popping up because actions_ci was not included in the class NFCoreYamlLintConfig(BaseModel

tests/pipelines/lint/test_nfcore_yml.py Show resolved Hide resolved
nf_core/utils.py Outdated Show resolved Hide resolved
nf_core/utils.py Show resolved Hide resolved
@mashehu mashehu added the WIP Work in progress label Oct 22, 2024
@ewels ewels added this to the 3.1 milestone Nov 21, 2024
# Conflicts:
#	CHANGELOG.md
#	nf_core/pipelines/create/create.py
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 84.21053% with 6 lines in your changes missing coverage. Please review.

Project coverage is 75.87%. Comparing base (dabf1ef) to head (eed0598).
Report is 52 commits behind head on dev.

Files with missing lines Patch % Lines
nf_core/pipelines/lint/nfcore_yml.py 76.92% 3 Missing ⚠️
nf_core/pipelines/sync.py 78.57% 3 Missing ⚠️
Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mashehu mashehu removed the WIP Work in progress label Dec 3, 2024
Copy link
Member

@mirpedrol mirpedrol left a comment

Choose a reason for hiding this comment

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

a couple of small suggestions, otherwise LGTM

nf_core/pipelines/lint/__init__.py Outdated Show resolved Hide resolved
nf_core/pipelines/lint/readme.py Outdated Show resolved Hide resolved
Co-authored-by: Júlia Mir Pedrol <mirp.julia@gmail.com>
@mashehu mashehu enabled auto-merge December 3, 2024 11:03
@mashehu mashehu merged commit a7351a2 into nf-core:dev Dec 3, 2024
87 checks passed
@Joon-Klaps
Copy link
Contributor

Thanks @mashehu ❤️

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.

5 participants