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

Update outdated "fix" message from nf-core lint #1263

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

ErikDanielsson
Copy link
Contributor

@ErikDanielsson ErikDanielsson commented Aug 9, 2021

Update "fix" message from nf-core lint to conform to the current command line options. Should close #1259.

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #1263 (4a4d821) into dev (0129101) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #1263   +/-   ##
=======================================
  Coverage   67.39%   67.39%           
=======================================
  Files          50       50           
  Lines        5607     5607           
=======================================
  Hits         3779     3779           
  Misses       1828     1828           
Impacted Files Coverage Δ
nf_core/lint_utils.py 87.09% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0129101...4a4d821. Read the comment docs.

@@ -38,7 +38,9 @@ def print_fixes(lint_obj, module_lint_obj):
"""Prints available and applied fixes"""

if len(lint_obj.could_fix):
fix_cmd = "nf-core lint {} --fix {}".format(lint_obj.wf_path, " --fix ".join(lint_obj.could_fix))
fix_cmd = "nf-core lint {}--fix {}".format(
"" if lint_obj.wf_path == "." else f"--dir {lint_obj.wf_path}", " --fix ".join(lint_obj.could_fix)
Copy link
Member

Choose a reason for hiding this comment

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

Could in theory just take the command used and append fixed I think. But not sure it's worth the effort, this looks good too.

@ewels ewels merged commit 4c8886e into nf-core:dev Aug 9, 2021
@ErikDanielsson ErikDanielsson deleted the update-fix-message branch July 25, 2022 09: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.

2 participants