How to define variable reused by different tasks?
See original GitHub issueFor instance, I would like to run lint
and black
on same multiple folders, instead of specify multiple times.
[tool.taskipy.tasks]
lint = "pylint -r n foo bar"
black = "black foo bar"
=>
[tool.taskipy.tasks]
path = "foo bar"
lint = "pylint -r n path"
black = "black path"
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Reuse the Same Variable with Different Properties - MathWorks
Reuse a variable with different properties when the code generator can determine the properties of each occurrence of the variable.
Read more >Is there a way to reuse a generic task file but include different ...
I was using the wrong attributes. The following worked for me. Note that I had to use import_task instead of include_tasks.
Read more >Software Design/Don't reuse a variable - Wikiversity
Reusing a variable for multiple purposes may be seen as a violation of the Single responsibility principle on the level of variables.
Read more >Roles - Ansible Documentation
Roles . Roles let you automatically load related vars, files, tasks, handlers, and other Ansible artifacts based on a known file structure.
Read more >Define variables - Azure Pipelines | Microsoft Learn
Variables are name-value pairs defined by you for use in a pipeline. You can use variables as inputs to tasks and in your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@illBeRoy Just checkout 1.9.0, LGTM.
BTW, please note that you have typos on previous comment, which should be
use_vars = true
.Otherwise will raise
Invalid TOML file
error.At last, just noticed that you did provide excellent README though. Thanks for your awesome work. @Granitosaurus @illBeRoy 🚀
@illBeRoy great idea! Let me adjust the PR 😃