Skip to content

fix: respect project path when using cookiecutter template in pdm init command#3728

Merged
frostming merged 1 commit intomainfrom
fix/cookiecutter
Jan 21, 2026
Merged

fix: respect project path when using cookiecutter template in pdm init command#3728
frostming merged 1 commit intomainfrom
fix/cookiecutter

Conversation

@frostming
Copy link
Collaborator

Fix #3721

Signed-off-by: Frost Ming me@frostming.com

Pull Request Checklist

  • A news fragment is added in news/ describing what is new.
  • Test cases added for changed code.

Describe what you have changed in this PR.

…t command

Fix #3721

Signed-off-by: Frost Ming <me@frostming.com>
@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.92%. Comparing base (1d31c8d) to head (a46f663).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/pdm/cli/commands/init.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3728      +/-   ##
==========================================
+ Coverage   85.91%   85.92%   +0.01%     
==========================================
  Files         118      118              
  Lines       12372    12370       -2     
  Branches     2061     2060       -1     
==========================================
  Hits        10629    10629              
+ Misses       1170     1168       -2     
  Partials      573      573              
Flag Coverage Δ
unittests 85.78% <0.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@frostming frostming merged commit fe4406c into main Jan 21, 2026
24 of 25 checks passed
@frostming frostming deleted the fix/cookiecutter branch January 21, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pdm init with --cookiecutter does git init in the wrong directory?

1 participant

Comments