Skip to content

Commit

Permalink
Filtering poetry IsSpecfileCompatible on poetry. prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Aug 30, 2024
1 parent db27652 commit ec1dac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/backends/python/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func makePythonPoetryBackend() api.LanguageBackend {
return false, err
}

return cfg.Tool.Poetry != nil, nil
return cfg.BuildSystem != nil && strings.HasPrefix(cfg.BuildSystem.BuildBackend, "poetry.") && cfg.Tool.Poetry != nil, nil
},
Lockfile: "poetry.lock",
IsAvailable: func() bool {
Expand Down Expand Up @@ -729,7 +729,7 @@ func makePythonUvBackend() api.LanguageBackend {
return false, err
}

return cfg.BuildSystem.BuildBackend == "hatchling.build", nil
return cfg.BuildSystem != nil && cfg.BuildSystem.BuildBackend == "hatchling.build", nil
},
Lockfile: "uv.lock",
IsAvailable: func() bool {
Expand Down

0 comments on commit ec1dac4

Please sign in to comment.