Viofo dashcam utilities

Basti Tee 696d79e303 Fix test lookup 4 роки тому
.github 47af1e67a3 make default 4 роки тому
.vscode 678165193f Remove pylance ext 4 роки тому
my_module 93d6e361ec Add main executor 4 роки тому
tests 5ac63f3e0e Fix test 4 роки тому
.editorconfig 9cd846f725 Integrate different config files 4 роки тому
.gitignore 7b38a1c22f Ignore IntelliJ project config 4 роки тому
LICENSE.txt 2085931545 Merge pypi sample project 5 роки тому
Makefile 3ceed53456 Fix isort build step 4 роки тому
Pipfile 696d79e303 Fix test lookup 4 роки тому
README.md b276c3acfb Update README.md 4 роки тому
__rename__.sh 9a87cb36e1 Improve rename script 4 роки тому
setup.cfg a1274b6901 Remove flake8-import-order which conflicts with isort 4 роки тому
setup.py e10e97185a Update setup.py 4 роки тому

README.md

python3-boilerplate CI

A best-practices template project for Python3 modules


Disclaimer: If you see this on pypi.org please note that the project is only published here for testing purposes. Please visit GitHub for the related template project.


Setup

  • Make sure that python3 and pip3 is installed and available on the path (on Ubuntu: sudo apt-get install python3 python3-pip)
  • On first checkout run make venv to initialize the project configuration
  • Refer to the Makefile to learn about the various operations available
  • To rename the project you can use the provided script

Features

How to use in existing project

To use it in an existing project you can merge the remote changes to your project.

  • Add remote to access the template project

    git remote add py3template git@github.com:BastiTee/python3-boilerplate.git
    git pull py3template master --allow-unrelated-histories
    
  • Solve all merge conflicts and commit. Most likely there will be a lot

  • Do whatever is necessary to remove the boilerplate you don't need, e.g.

    rm -rf my_module tests/test_utils.py __rename__.sh
    
  • Commit your changes and push to your project

Resources

Future ideas and todos

  • Optional static type hints (PEP 484) with mypy
  • Make sure tox is working as expected for supported Python versions
  • Introduce black in favour of other linters
  • Introduce pyproject.toml along with bleeding edge build tools like flit or poetry

Licensing

This project is licensed under Apache License 2.0.