Skip to content

arunabhcode/py-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup coding style

For Linux: Using Sublime 3 as code editor

  • Install prerequisites
    sudo apt-get install python3 
    sudo apt-get install python3-pip 

    sudo pip install -r requirements.txt
  • Open Sublime

  • ctrl + shift + p

  • select "package control: install package"

  • search and install SublimeLinter

  • search and install SublimeLinter-pylint

  • search and install AutoDocString

  • search and install FileHeader

  • search and install PyYapf Python Formatter, change settings

{
    "on_save": true
}
  • search and install Markdown Preview

Documentation

  • To setup the docs folder use
sphinx-quickstart
  • To process code documentation into .rst files
cd docs/
sphinx-apidoc -f -o ./ ../modules/
  • To generate documentation
cd docs/
make html

Test

  • Run tests from root
pytest -v unit-tests/

About

This will serve as a python repository template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages