Skip to content

unklearn/python-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d6647ce · Jun 21, 2019

History

38 Commits
Jun 21, 2019
Jun 21, 2019
Jun 10, 2019
Jun 21, 2019
Jun 13, 2019
Jun 3, 2019
Jun 13, 2019
Jun 10, 2019
Jun 10, 2019
Jun 21, 2019
Jun 21, 2019

Repository files navigation

python-runtime

Build status

Build Status

Code climate

A runtime for unklearn notebooks to run python code

Running test locally

To run local tests, first create a virtual environment with python3.

    virtualenv venv -p python3
    
    source venv/bin/activate
    
    pip install ".[testing]"
    
    pytest

File formatting

This repo uses yapf to format the files. Install yapf using.

    pip install ".[development]"

Before commit, a pre-commit hook will format the files. Drop this in .git/hooks/pre-commit

#!/bin/sh

# Get list of staged files and find python files and format using yapf

files=$(git diff --name-only --cached | grep .py)
if [ ! -z $files ];
then
  yapf -vv -i $files
  git add $files
fi

About

A runtime for unklearn notebooks to run python code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages