Skip to content

NuCOS/docker-python-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-template

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

Predefined containers include:

  • Python
  • MongoDB
  • PostgreSQL
  • RabbitMQ

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

We aim to get a minimum code coverage of 95% Remember to use coverage before committing so the build will not fail after pushing!

Linting

Every file with a rating below 8.0 will be rejected after pushing a commit!

Running the linter

make lint

Installing the linter as pre commit hook

make install_pre_commit

Running custom commands in the python container

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

About

docker image using alpine with requirements for autobasedoc and nucosObs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors