Skip to content

Mark arbitrary function as tasks with @pytask.mark.task. #200

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

Merged
merged 7 commits into from
Jan 23, 2022

Conversation

tobiasraabe
Copy link
Member

@tobiasraabe tobiasraabe commented Jan 21, 2022

Closes #175.

@tobiasraabe tobiasraabe added this to the v0.1.6 milestone Jan 21, 2022
@codecov
Copy link

codecov bot commented Jan 21, 2022

Codecov Report

Merging #200 (9461ccb) into main (104ece6) will increase coverage by 0.06%.
The diff coverage is 98.78%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #200      +/-   ##
==========================================
+ Coverage   92.78%   92.84%   +0.06%     
==========================================
  Files          71       74       +3     
  Lines        6732     6806      +74     
==========================================
+ Hits         6246     6319      +73     
- Misses        486      487       +1     
Flag Coverage Δ
end_to_end 78.69% <59.75%> (-0.26%) ⬇️
integration 41.80% <56.09%> (+0.11%) ⬆️
unit 70.02% <98.78%> (+1.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/_pytask/task_utils.py 93.33% <93.33%> (ø)
src/_pytask/cli.py 98.63% <100.00%> (+0.03%) ⬆️
src/_pytask/mark/structures.py 92.04% <100.00%> (ø)
src/_pytask/mark_utils.py 88.88% <100.00%> (+5.55%) ⬆️
src/_pytask/parametrize.py 100.00% <100.00%> (ø)
src/_pytask/task.py 100.00% <100.00%> (ø)
tests/test_task.py 100.00% <100.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 104ece6...9461ccb. Read the comment docs.

@tobiasraabe tobiasraabe merged commit ade72f1 into main Jan 23, 2022
@tobiasraabe tobiasraabe deleted the pytaskmarktask branch January 23, 2022 19:12
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.

ENH: Add a @pytask.mark.task decorator to mark functions as tasks irrespective of the name.
1 participant