Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Commit

Permalink
Just add basic boilerplate.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksaaskil committed Oct 25, 2018
1 parent 7953036 commit 3d57bd2
Show file tree
Hide file tree
Showing 12 changed files with 165 additions and 2 deletions.
90 changes: 90 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
.venv/
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
All rights reserved.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
init:
pip install -r requirements.txt

test:
py.test tests
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# meeshkan-client
Client code for running ML jobs
# Meeshkan client

Client code for running ML jobs.

### Install requirements
```bash
make init
```

### Running tests
```bash
make test
```
Empty file added requirements.txt
Empty file.
1 change: 1 addition & 0 deletions sample/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .core import hmm
13 changes: 13 additions & 0 deletions sample/core.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
from . import helpers

def get_hmm():
"""Get a thought."""
return 'hmmm...'


def hmm():
"""Contemplation..."""
if helpers.get_answer():
print(get_hmm())
return None
3 changes: 3 additions & 0 deletions sample/helpers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def get_answer():
"""Get an answer."""
return True
Empty file added tests/__init__.py
Empty file.
7 changes: 7 additions & 0 deletions tests/context.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# -*- coding: utf-8 -*-

import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

import sample
16 changes: 16 additions & 0 deletions tests/test_advanced.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-

from .context import sample

import unittest


class AdvancedTestSuite(unittest.TestCase):
"""Advanced test cases."""

def test_thoughts(self):
self.assertIsNone(sample.hmm())


if __name__ == '__main__':
unittest.main()
16 changes: 16 additions & 0 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-

from .context import sample

import unittest


class BasicTestSuite(unittest.TestCase):
"""Basic test cases."""

def test_absolute_truth_and_meaning(self):
assert True


if __name__ == '__main__':
unittest.main()

0 comments on commit 3d57bd2

Please sign in to comment.