Skip to content

Starter python library project for VSCode and github with built-in features like preconfigured venv with many linters and formatters, unit tests, README.md, preconfigured lint.yml and ci.yml for GitHub Workflow and preconfigured .gitignore file. Clone, install dependencies, and code.

Notifications You must be signed in to change notification settings

Leogiciel/py-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-stars

Lint Code Base Unit tests

Description

Starter python library project for VSCode with built-in features:

  • Preconfigured venv with linters and formatters
  • Unit tests to run in tests.py
  • README.md template (this one)
  • Preconfigured lint.yml for GitHub Workflow
  • Preconfigured ci.yml for Github Workflow (runs test.py unit tests)
  • Preconfigured .gitignore file

Example :

Input


Output


Usage

Installation

  • Clone this repo
  • Open a terminal in local folder
  • Create virtual environment :
   py -3 -m venv .venv
   .venv\scripts\activate
  • Install dependencies :
   python -m pip install --upgrade pip
   pip install -r requirements.txt
  • Enjoy !

tests.py

This file can be run :

  • in debugger using the preconfigured "Launch current file" debug config
  • in Tests explorer tab
  • via Terminal with :
python -m unittest tests.py

Changelog

Initial release.

TODO

  • PyPI generation in CI step
  • Autogenerated doc
  • Preconfigured logger
  • Main template ?
  • Module template ?
  • Architecture hierarchy ?

About

Starter python library project for VSCode and github with built-in features like preconfigured venv with many linters and formatters, unit tests, README.md, preconfigured lint.yml and ci.yml for GitHub Workflow and preconfigured .gitignore file. Clone, install dependencies, and code.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages