-
Notifications
You must be signed in to change notification settings - Fork 193
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
be compliant with black defaults in the pipeline template #1788
Conversation
a2b0500
to
6659e25
Compare
Codecov Report
@@ Coverage Diff @@
## dev #1788 +/- ##
==========================================
- Coverage 69.33% 69.23% -0.10%
==========================================
Files 59 59
Lines 7148 7148
==========================================
- Hits 4956 4949 -7
- Misses 2192 2199 +7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Thanks for this! The downside of is that the I wonder if getting the linting config to match nf-core/tools as in #1789 is more sustainable.. |
I agree, this is a minimalistic fix for the immediate issue, not a preventive measure. I think we need to think a bit more about preventing the issue in the future. This issue is a symptom of a broader problem which is that this script come snot in the form of standard Python packaging. It lacks not only the code formatting settings, but it also lacks tests and this is a big issue which should be fixed somehow. Either with a separate distribution, making it part of nf-core or adding tests to the bin directory and setting up pytest for this as well. The latter solution would then also affect the pyproject.toml. My aversion against the pyproject.toml solution in the pipeline template is based in the fact that this will change the constraints for linting in the whole pipeline and this might as well lead to unexpected issues. |
PS: This PR does not prevent the addition of a |
Yes all good points 👍🏻 Maybe worth mentioning that this python script will very likely be replaced / removed in the near future (see |
f3f62ac
to
9c88222
Compare
After skimming through the #sample-sheet channel, I agree, there is no point in putting much effort in this script. I think the changes in this PR make the code more readable and can be merged, but if this is not desired this PR should be closed. |
9c88222
to
9d30b2b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Leaving to @mirpedrol or @mashehu to merge as they have the bigger picture.
Fixes https://nfcore.slack.com/archives/CE5LG7WMB/p1661868498109569
This PR prevents the need for a
pyproject.toml
file in the pipeline template.PR checklist
CHANGELOG.md
is updateddocs
is updated