From 7cfecafdbd84c0f25b8a6c09a4cef72616968917 Mon Sep 17 00:00:00 2001 From: Diogo Date: Fri, 23 Aug 2024 17:59:31 -0300 Subject: Add option `cwd` to running tasks (#83) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🎨 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 * 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 --- .vscode/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.vscode') diff --git a/.vscode/settings.json b/.vscode/settings.json index 6e80a92..791f1ba 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,4 +4,4 @@ "python.linting.pylintEnabled": true, "python.linting.mypyEnabled": true, "python.formatting.provider": "none" -} \ No newline at end of file +} -- cgit v1.2.3