aboutsummaryrefslogtreecommitdiffstats
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2026-03-21Add support for Python 3.6, 3.7, and 3.8 on CIEugene Triguba2-2/+3
2026-03-21Replace pylint with black, isort, and ruffEugene Triguba7-255/+369
2026-03-21Remove task.bat and task symlinkEugene Triguba1-4/+2
2026-03-21Fix subprocess signal handling logic on linux with ash/dashEugene Triguba2-2/+2
Certain shells will have optimizations which will 'exec' commands directly and not spawn a subprocess, which breaks our signal test on those systems.
2026-03-19Remove tomli install testEugene Triguba1-49/+0
2026-03-19Replace poetry with uvEugene Triguba1-1/+1
2026-03-19Setup taskipy2 fork from taskipy v1.14.1Eugene Triguba3-6/+6
2024-08-23Add option `cwd` to running tasks (#83)Diogo11-2/+126
* 🎨 chore: removing settings that are deprecated Reference: https://github.com/microsoft/vscode-python/wiki/Migration-to-Python-Tools-Extensions#existing-python-tools-extensions * 👷 build: add `.venv` folder to `.gitignore` * ✨ feat: new property 'workdir' for tasks * 🎨 chore: add "cwd" to error messages * ✨ feat: new property `dirpath` of `PyProject` * ✨ feat: new method to get workdir in `TaskRunner` * 🐞 fix: allow for absolute paths * 🐞 fix: the task cwd should takes precedence * 📄 docs: update `README.md` * Update README.md Co-authored-by: Roy Sommer <illBeRoy@users.noreply.github.com> * rename variable `working_dir` into `cwd_as_path` to emphasize what it's really used for suggestion: https://github.com/taskipy/taskipy/pull/83/files#r1676391148 * assert that `cwd` is a string, and throw if it's not * 👷 build: add settings to test in VSCode * 🐞 fix: add task exec when testing on windows * ✅ test: add new `SetCWDTestCase` * ✅ test: fix error message in test case * ✏️ typo: in fixture name * 💄 style: format code * Update settings.json --------- Co-authored-by: Roy Sommer <illBeRoy@users.noreply.github.com>
2024-06-22Add Tests to ensure Python 3.11, 3.12 support (#82)Roy Sommer1-1/+0
* Taskipy used an old version of pylint for development, which does not run on recent versions of python * Updated pylint for python >= 3.11 * Added Python 3.11, 3.12 to the CI matrix
2024-06-16Add feature to suggest similar tasks when a task is not found (#78)Carlos Mateus2-0/+21
* Add feature to suggest similar tasks when a task is not found * Add test for feature to suggest similar tasks when a task is not found * Add a test for when a task is not found and there are no suggestions * Fix lint
2023-07-30GH-63: Fix use_vars task override with project setting (#64)Eugene Triguba1-0/+32
* from now on, the use_vars task-level setting takes priority if it is ever explicitly set. Otherwise, the project-level setting is used * closes #63
2023-04-08gh-32: Fix linting warnings/failuresEugene Triguba1-3/+14
2022-09-01Fix Tomli Version test (#53)Roy Sommer1-1/+1
Fixed the tomli test which was broken by poetry 1.2.0
2022-08-31handle listing tasks when there are no tasks (#52)Roy Sommer1-0/+18
2022-03-02Add tomli test case for different python versions (#48)Eugene Triguba1-0/+49
* Add tomli test case for different python versions * Fix function name style
2022-02-10Add support for recursive variables (#44)Eugene Triguba1-2/+165
* Use `self` in pyproject * Add support for recursive variables * Remove duplicate psutil from pyproject * Tweak implementation based on issue feedback * Add type hint to vars_dict * Use `count_of_previously_resolved_vars` name * Clarify test name * Revert refactor and use tuple for variable type return * Add non recursive variable test case * Alter test case name * Add recursive variable docs * Add recursive variables to table of contents * Use PyProject to access static methods * Add better handling of invalid variables * Fix lockfile hash * Move variable import * Only resolve variables once if we are using vars * Fix minor type issue * Reword error message
2022-02-06Fix `taskipy.variables` table name in error message (#39)Eugene Triguba1-1/+1
2021-09-27added vars to readmeRoy Sommer1-4/+4
2021-09-27Add variable support (#38)Bernardas Ališauskas1-1/+94
* add variable support * add use_vars task option and make command variables expand only when use_vars is True * add tests for variable feature * add setting use_vars as global use_vars for all commands
2021-09-07Only use and install `mslex` on Windows (#36)Eugene Triguba4-13/+28
* Fix lint issues where encoding was not specified * Only use and install mslex on Windows * Escape backslash in test_windows * Alter Windows CI name Since we actually have some tests other than the path sanity test, it probably makes sense to just call it a Windows test now. * Disable pylint issue with mslex import It's raising an unable to import issue with that line, which makes sense since mslex wouldn't be installed on any other platform other than Windows, but it also wouldn't be run on any other platform so it seems to be a non issue. Co-authored-by: Eugene Triguba <etriguba@sonifi.com>
2021-05-16Allow Declaring Tasks with Descriptions (#35)Roy Sommer1-7/+68
adds the ability to declare tasks explicitly, including command and description text
2021-03-28Add usage printout when no task is given (#31)Eugene Triguba1-0/+15
* 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
2020-12-25Find a parent pyproject.toml from a child directory (#28)Tsunenobu Kai4-2/+27
Enable running tasks defined in parent pyproject.toml from a child directory.
2020-11-28Support Windows-Style Paths (#27)Roy Sommer3-2/+18
use mslex instead of shlex when running on windows. added a new windows sanity ci test.
2020-11-24Add -l option for taskipy list command (#24)Eugene Triguba1-12/+17
2020-10-08fixed tests on macosRoy Sommer1-1/+1
2020-10-07Update test_taskipy.pyRoy Sommer1-4/+0
2020-10-07add list command which lists tasks (#21)Bernardas Ališauskas3-3/+57
* 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>
2020-08-08Propagate SIGTERM to child processes (#19)RobinFrcd4-1/+49
SIGTERM sent to taskipy are handed over to task subprocess
2020-06-15Refactor taskipy into Task, PyProject, and TaskRunner (#15)Eugene Triguba1-9/+15
* 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.
2020-03-21Passed Arguments Are Escaped Properly (#12)Roy Sommer3-0/+23
passed arguments are now escaped properly. can pass arguments with spaces.
2020-03-07Custom Runner (#11)Roy Sommer3-18/+102
2020-02-01Ignore SIGINT While Running Tasks (#8)Roy Sommer4-4/+79
fix: sigint is now ignored by taskipy process, reflects output of task instead
2020-01-02added support for passing arguments into taskipy tasksRoy Sommer3-2/+61
2019-12-23renamingRoy Sommer3-3/+3
2019-12-23v1.0.0Roy Sommer1-1/+1