Browse Source

Allow the defining of the initial git branch name

main
Ryan Reed 2 years ago
parent
commit
deb69974f1
3 changed files with 3 additions and 1 deletions
  1. +1
    -0
      README.md
  2. +1
    -0
      cookiecutter.json
  3. +1
    -1
      hooks/post_gen_project.sh

+ 1
- 0
README.md View File

@ -46,6 +46,7 @@ This will take you to a project setup asking for:
- `package_command` - This will configure poetry to allow calling the package, `package_name/console:entry_point`, via this command. Generally, this would be the same value as `package_name`
- `author_name` - The author of the package
- `author_email` - The email for the author
- `git_branch` - The branch to utilize when performing `git init -b <branch>`
- `github_repo_name` - For documentation, such as URLs to the issue tracker
- `github_user_name` - For documentation, such as URLs to the issue tracker
- `python_version`- The Python version that should be defined in `pyproject.toml`


+ 1
- 0
cookiecutter.json View File

@ -7,6 +7,7 @@
"author_email": "author@website.com",
"author_name": "Project Author",
"git_branch": "main",
"github_repo_user": "",
"github_repo_name": "",


+ 1
- 1
hooks/post_gen_project.sh View File

@ -1,2 +1,2 @@
#!/bin/bash
poetry install && git init && poetry run pre-commit install
poetry install && git init -b {{cookiecutter.git_branch}} && poetry run pre-commit install

Loading…
Cancel
Save