Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

tradebyte/python-template

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-template

Generic python project template to get you started utilizing docker containers.

Predefined containers include:

  • Python
  • MongoDB
  • PostgreSQL
  • RabbitMQ
  • MySQL
  • phpMyAdmin

Quickstart

make

This installs any dependencies and fires up all containers

Tests

Running tests

make test

Discovers any testfile matching test*.py

Tests with coverage reports

make coverage

HTML coverage report will be dumped to ./htmlcov

Remember to use coverage before committing so the build will not fail after pushing!

Linting

Running the linter

make lint

Installing the linter as pre commit hook

make install_pre_commit

Starting an interactive python console

make shell

Running custom commands in the python container

docker-compose run --rm py <your command>

Hints

Exporting all files

For example if you want to use this template to start working in an other repository.

git archive master | tar -x -C /somewhere/else

About

Generic python project template to get you started

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.