From 1b8c320c570473082f1eb4bf9628bff66e799092 Mon Sep 17 00:00:00 2001 From: ejones40 Date: Fri, 20 Jun 2025 08:15:13 -0500 Subject: [PATCH] Add pyproject.toml as project root marker (#804) * feat: Add pyproject.toml as project root marker - Added 'pyproject.toml' to the project markers array in findProjectRoot() - Enables Task Master to recognize Python projects using pyproject.toml - Improves project root detection for modern Python development workflows - Maintains compatibility with existing Node.js and Git-based detection * chore: add changeset --------- Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> --- .changeset/shy-groups-fly.md | 5 +++++ scripts/modules/utils.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/shy-groups-fly.md diff --git a/.changeset/shy-groups-fly.md b/.changeset/shy-groups-fly.md new file mode 100644 index 00000000..e645fe31 --- /dev/null +++ b/.changeset/shy-groups-fly.md @@ -0,0 +1,5 @@ +--- +"task-master-ai": minor +--- + +Add better support for python projects by adding `pyproject.toml` as a projectRoot marker diff --git a/scripts/modules/utils.js b/scripts/modules/utils.js index 2392b250..5ec6fc55 100644 --- a/scripts/modules/utils.js +++ b/scripts/modules/utils.js @@ -73,7 +73,7 @@ function resolveEnvVariable(key, session = null, projectRoot = null) { */ function findProjectRoot( startDir = process.cwd(), - markers = ['package.json', '.git', LEGACY_CONFIG_FILE] + markers = ['package.json', 'pyproject.toml', '.git', LEGACY_CONFIG_FILE] ) { let currentPath = path.resolve(startDir); const rootPath = path.parse(currentPath).root;