- Sign up for a GitHub account here
- Install cookiecutter with
pip
/conda
/apt-get
instructions here - Choose a cookiecutter template (search on GitHub here)
- The one I showed was https://mgancita.github.io/cookiecutter-pypackage/ which does the automatic GitHub-Pages, testing, linting, and more
- Get the link to the cookiecutter repo that ends in
.git
(should be in the template install instructions) - Run
cookiecutter reponame.git
(e.g.cookiecutter https://github.com/mgancita/cookiecutter-pypackage.git
) - Follow the prompts to set the options for your new template folder (your name, the repo name, etc.)
- Change directory to your new empty template (
cd new-repo-name
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
channels: | |
- conda-forge | |
dependencies: | |
- statsmodels | |
- numpy | |
- matplotlib |
- Run
trunkify.sh <GH_username>
to rename the master branch of all repos in a directory. - You need to update the default branch for each repo on GitHub (follow urls printed out).
First download the .trunkify.sh
script and place it in a folder that has git repo(s) in it (e.g. your projects/
folder, NOT in a Git repo itself).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Built-in dependencies | |
import os | |
import subprocess | |
# External dependencies (requires install, e.g. with conda) | |
import h5py | |
import numpy as np | |
# Uncomment and edit this if your Davinci interpreter is not at '/usr/local/bin/davinci' | |
# DAVINCI_PATH = "/path/to/bin/davinci" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Built-in dependencies | |
import os | |
import subprocess | |
# External dependencies (requires install, e.g. with conda) | |
import h5py | |
import numpy as np | |
# Uncomment and edit this if your Davinci interpreter is not at '/usr/local/bin/davinci' | |
# DAVINCI_PATH = "/path/to/bin/davinci" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder