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

Add ruff - Replace Black, isort and pyupgrade #2620

Merged
merged 22 commits into from
Jan 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions nf_core/params_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def format_param(self, name, properties, required_properties=(), show_hidden=Fal
self.schema_obj.get_schema_defaults()
default = properties.get("default")
typ = properties.get("type")
mirpedrol marked this conversation as resolved.
Show resolved Hide resolved
required = name in required_properties

out += _print_wrapped(name, "-", mode="both")

Expand All @@ -204,6 +205,9 @@ def format_param(self, name, properties, required_properties=(), show_hidden=Fal
if typ:
out += _print_wrapped(f"Type: {typ}", mode="none", indent=4)

if required:
out += _print_wrapped("Required", mode="none", indent=4)

out += _print_wrapped("\n", mode="end")
out += f"# {name} = {json.dumps(default)}\n"

Expand Down
Loading