Skip to content

DOC: skipif requires reason to be keyword argument #195

@hmgaudecker

Description

@hmgaudecker

Location of the documentation

https://pytask-dev.readthedocs.io/en/latest/tutorials/how_to_skip_tasks.html#how-to-skip-tasks

Documentation problem

Provide a description of what documentation you believe needs to be fixed/improved.

@pytask.mark.skipif(NO_LONG_RUNNING_TASKS, "Skip long-running tasks.")

Suggested fix for documentation

@pytask.mark.skipif(NO_LONG_RUNNING_TASKS, reason="Skip long-running tasks.")

Similar code fails with:

TypeError: skipif() missing 1 required keyword-only argument: 'reason'

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions