Skip to main content

Starter python library project for VSCode AND Github with built-in features;

Project description

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 ?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-vs-github-starter-0.2.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

py_vs_github_starter-0.2.1-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page