Skip to content

A project template for Python projects

License

Notifications You must be signed in to change notification settings

HuangFuSL/python-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Project Template

A project template for Python projects. Inspired by xinntao/ProjectTemplate-Python.

Features

Usage

Notice: .vscode directory can be removed if Visual Studio Code is not used in development.

Setting up the project

  1. Create a repository using this template.
  2. Edit project settings in pyproject.toml.
  3. Edit license information in LICENSE.
  4. Add your own README.md

Developing

Project files are located in src directory. Coding style is automatically kept using pre-commit. Related configuration are stored in pyproject.toml.

Testing

Add test scripts to tests directory. Each script should start with test_.

Execute poetry run pytest to perform unit test.