Skip to content

C-Naoki/my-python-template

Repository files navigation

Python Template for Project

Python 3.10 Poetry pre-commit Code style: black

This repository is a my python template to help you get started quickly on a new project.

How to Use This Template for a New Project

Follow these steps to start a new project based on this template:

  1. Create a New Repository: First, create a new repository on GitHub. This will be the repository for your new project.

  2. Clone the template to a New Directory: On your local machine, clone this template repository into a new directory that will become your new project. Then remove the .git directory to completely decouple it from the template. Use these commands:

    git clone https://github.com/C-Naoki/my-python-templete.git <new-project>
    cd <new-project>
    rm -rf .git
  3. Setting Up The Local Development Environment: Install the required python version, set the local python version, create and use a new poetry environment, and install the project dependencies. You can do this with the provided Makefile using the following command:

    make install
  4. Initialize a New Repository: Then, initialize a new repository in the new directory:

    git init
  5. Set the Remote of the New Repository: Set your new GitHub repository as the remote for your new project:

    git remote add origin <url-of-your-new-repository>
  6. Push to the New Repository: Stage all files, commit them, and push them to your new repository:

    git add .
    git commit -m ":tada: initial commit"
    git push -u origin master

By following these steps, you can start a new project based on this starter set.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published