Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kilgoretrout1985/default-py-template

Default Python project template
https://github.com/kilgoretrout1985/default-py-template

autotesting github-actions project python template template-repository tox

Last synced: about 14 hours ago
JSON representation

Default Python project template

Awesome Lists containing this project

README

        

# default-py-template

Default Python project template with linter, type checking and test environment
setup. Also supporting github auto-running tests on push to repository.

![Tests](https://github.com/kilgoretrout1985/default-py-template/actions/workflows/tests.yaml/badge.svg)

## Use

To use this project's structure in a new project without leaving dependency
on this stub project:

1)
```
git clone https://github.com/kilgoretrout1985/default-py-template.git yourrealprojectname
cd yourrealprojectname
rm -drf .git
git init .
```

2) Search all occurences of `projectname` in project files (and in dir- and file-names!)
and replace them with `yourrealprojectname`.

3) Browse `setup.cfg` and `README.md` to change author name, email and github
links to the actual ones.

4)
```
python3 -m venv .env && \
source .env/bin/activate && \
pip install -U pip && \
pip install -e .[dev]
```

More on `pip install -e .` [here](https://stackoverflow.com/a/68885989/17368036).

5) Run `tox` command to check your project setup. Everything should be green at this
point.

Happy commits!

## (c)

This repo is mainly based on [this video](https://www.youtube.com/watch?v=DhUpxWjOhME).