| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
adds the ability to declare tasks explicitly, including command and description text
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add usage printout when no task is given
This addresses issue #30 where 'could not find task "None"'
would be outputted when simply `task` is ran without an task
name.
* Simplify InvalidUsageError's __str__ method
* Ignore pyenv's local python version file
* Update dependencies in lockfile
a.k.a. ran `poetry update`
* Disable W0707 in pylint
|
| | |
|
| | |
|
| |
|
| |
Enable running tasks defined in parent pyproject.toml from a child directory.
|
| | |
|
| |
|
|
| |
use mslex instead of shlex when running on windows.
added a new windows sanity ci test.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add list command which lists tasks
* refactor list argument as a flag
add tests and readme for --list flag
* more tests
* Update tests/test_taskipy.py
Co-authored-by: Roy Sommer <illBeRoy@users.noreply.github.com>
* refactor listing to taskrunner
fix tests and cli to handle --list following arguments cases
Co-authored-by: Roy Sommer <illBeRoy@users.noreply.github.com>
|
| | |
|
| | |
|
| |
|
| |
SIGTERM sent to taskipy are handed over to task subprocess
|
| |
|
|
|
|
|
| |
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Run `poetry update`
* Sort test imports & convert unused f strings to strings
There were some f strings that weren't interpolating anything.
* Create custom exceptions
* Refactor taskipi package into task, pyproject, and task_runner
* Add docstrings & types to task & task_runner.
Also, a small refactoring of __bail_on_first_fail()
in task_runner.py.
* Remove docstrings
* Add MissingTaskipySettingsSectionError
* Make path & items in PyProject private
* Check runner is string rather than catching AttributeError
* Add default exception case to cli
* Add exit_code class variable to exceptions
* Change PyProject to take in the file_path
This also converts the instance variables to be private
and has __load_toml_file convert the file_path to a Path
if it is a str. We also no longer store the file_path
since __load_toml_file is the only place it is needed
so it is just passed in.
* Task now builds the commands & takes in args + project
I think args could possibly be moved over to commands
since that is the only place it is used and that would
reduce the amount of things we are passing in to Task.
commands would just have to be converted to a method instead
of a property then.
* TaskRunner only runs the commands now with the project passed in
Instead of putting the commands together, that is now delegated
to Task. The run_commands_and_bail_on_first_fail method is now
gone as that is what `run` does now. Furthermore, the instance
variables of TaskRunner are private now. A single instance of the
TaskRunner can now run many tasks now, since it is not tied to
any particular task.
* Update cli to use updated TaskRunner
The pyproject.toml path is now passed in
with the command name and args being passed
to `run`.
* Use single quotes
* Extract pre_task & post_task to use __find_hooks
They are basically the same method, with a one word
difference.
|
| | |
|
| | |
|
| | |
|
| |
|
| |
passed arguments are now escaped properly. can pass arguments with spaces.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
fix: sigint is now ignored by taskipy process, reflects output of task instead
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
* docs: update README.md [skip ci]
* docs: create .all-contributorsrc [skip ci]
* Update README.md
Co-authored-by: Roy Sommer <illBeRoy@users.noreply.github.com>
|
| | |
|