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>
This commit is contained in:
5
.changeset/shy-groups-fly.md
Normal file
5
.changeset/shy-groups-fly.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"task-master-ai": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Add better support for python projects by adding `pyproject.toml` as a projectRoot marker
|
||||||
@@ -73,7 +73,7 @@ function resolveEnvVariable(key, session = null, projectRoot = null) {
|
|||||||
*/
|
*/
|
||||||
function findProjectRoot(
|
function findProjectRoot(
|
||||||
startDir = process.cwd(),
|
startDir = process.cwd(),
|
||||||
markers = ['package.json', '.git', LEGACY_CONFIG_FILE]
|
markers = ['package.json', 'pyproject.toml', '.git', LEGACY_CONFIG_FILE]
|
||||||
) {
|
) {
|
||||||
let currentPath = path.resolve(startDir);
|
let currentPath = path.resolve(startDir);
|
||||||
const rootPath = path.parse(currentPath).root;
|
const rootPath = path.parse(currentPath).root;
|
||||||
|
|||||||
Reference in New Issue
Block a user