Skip to content

Commit

Permalink
style: fix Flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalinDe committed Mar 19, 2024
1 parent 14042f9 commit db61dfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pusteblume/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
"version": "%(prog)s {version}",
},
"errors": {
"reserved_chars": "'{string}' contains reserved characters '{reserved_chars}'",
"reserved_chars": "'{string}' contains reserved characters '{reserved_chars}'", # noqa: E501
"invalid_tag": "'{string}' is not a valid tag",
},
},
"config": {
"messages": {
"generate_default_config": "generated default configuration file {config_file}",
"generate_default_config": "generated default configuration file {config_file}", # noqa: E501
},
"errors": {
"missing_section": "required section '{section}' missing",
Expand Down
6 changes: 3 additions & 3 deletions pusteblume/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,21 +439,21 @@ def edit(config, name=None, tags=tuple()):
"""
tasks = list(_get_task(config, name, tags))
if not tasks:
return pusteblume.output.OUTPUT["tasks"]["messages"]["edit"]["no_matching_task"].format(
return pusteblume.output.OUTPUT["tasks"]["messages"]["edit"]["no_matching_task"].format( # noqa: E501
task=Task(name, tags, (None, None)).pprinted_short,
)
if len(tasks) > 1:
task_id, task = tasks[
_select(
config,
pusteblume.output.OUTPUT["tasks"]["messages"]["edit"]["multiple_matching_tasks"],
pusteblume.output.OUTPUT["tasks"]["messages"]["edit"]["multiple_matching_tasks"], # noqa: E501
(task.pprinted_medium for _, task in tasks),
) - 1
]
else:
task_id, task = tasks[0]
print(
pusteblume.output.OUTPUT["tasks"]["messages"]["edit"]["single_matching_task"].format(
pusteblume.output.OUTPUT["tasks"]["messages"]["edit"]["single_matching_task"].format( # noqa: E501
task=task.pprinted_medium,
)
)
Expand Down

0 comments on commit db61dfe

Please sign in to comment.