GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Jamesscn/python-template: A template for your Python projects with PEP8 and PEP484 compliance tools, and the Rich library.

This repository was archived by the owner on Feb 15, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
exampleproject
exampleproject
 
 
tests/unit
tests/unit
 
 
.gitignore
.gitignore
 
 
.pylintrc
.pylintrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 
run.sh
run.sh
 
 
setup.sh
setup.sh
 
 
test.sh
test.sh
 
 
tox.ini
tox.ini
 
 

Repository files navigation

Python Template

This is a template repository for a Python 3 project which follows the typical Python code structure while also integrating tools for complying with the PEP8 and PEP484 coding standards.

Setup

To set up the project, clone this repository, cd into the repository and run the following command:

./setup.sh

Usage

To run the project, run the following command:

./run.sh

And to test and lint the project run the test command:

./test.sh

Features

  • Everything is installed and run on a virtual environment
  • Tox framework that runs the following tools for PEP8 and PEP484 compliance:
    • black: automatically formats the code to conform to PEP8
    • pytest: allows you to run unit and integration tests
    • pylint: warns you about non-compliant code
    • mypy: warns you about type hints
  • Rich library for pretty outputs
    • The exampleproject enables rich tracebacks to ease debugging
  • Visual Studio Code settings
    • Automatically formats your code when it is saved
    • A line is shown at the maximum line width
    • It is recommended that you install the autoDocstring plugin by Nils Werner for generating docstrings
  • GitHub actions workflow for testing on pull request or push to main

Considerations

The maximum line width for this project has been set to 120 characters, however you can change this limit by modifying the following files:

  • .vscode/settings.json
  • .pylintrc
  • pyproject.toml

This project is also licensed under The Unlicense, so you are free to remove the LICENSE file and add a new one to your project.

About

A template for your Python projects with PEP8 and PEP484 compliance tools, and the Rich library.

Topics

blackmypypep484pep8pycodestylepylintpytestpythonpython3richtemplatetestingtox

Resources

Readme
Unlicense
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.