Giter Site home page Giter Site logo

python3-boilerplate's Introduction

Python 3 Boilerplate

Build Status

This is a simple boilerplate (project template) for Python 3.

Packages

Pytest is a test framework for Python. It is arguably better than unittest that is included in Python standard library due to its conciseness and flexibility.

Pylint is a linter for Python 3 that adheres to PEP 8, the Python style guide. It helps enforce coding style throughout your package.

Sphinx is a documentation generator that generates HTML pages from the docstrings in the code. We use numpydoc format for docstrings. You can view the sample documentation page here.

TravisCI is a continuous integration(CI) service that is free for open source projects. TravisCI allows you to automate Quality Assurance (QA) and have confidence on deployed code.

Setup

Install necessary packages from PyPI using pip.

pip install -r requirements.txt

Using Packages

Pytest

Run the following command:

pytest

Pylint

Run the following command:

pylint *

Sphinx

To automatically generate documentation from your code, go to /docs and run

make autodocs
make html

Using Boilerplate

  1. Fork this repository by pressing the 'Fork' button.

  2. Find all instances of package_name in your forked repository and replace them with your own package name.

  3. Change the copyright and author information in docs/source/conf.py.

  4. Connect your repository with Travis CI by visiting travis-ci.org. Change status image in README.md.

python3-boilerplate's People

Contributors

seungjaeryanlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.