I added a .pylintrc file, so that everyone working on this can use the same settings for pylint. I highly recommend using pylint for error and style checking, and you can have vim do it automatically as you're writing code if you install the Syntastic plugin.
I added a requirements.txt file, which contains a list of all of the python packages needed to run this code (it's probably incomplete, but at least it's a start). I added a few new requirements in this PR, so this makes it so that you just run pip install -r requirements.txt to grab all of this code's dependencies, instead of trying to run it and only finding at runtime that you're missing dependencies.
I set up a framework for running tests, and added a few simple ones to make sure it's working. You run the tests either by running py.test --cov=dlfa from the main directory, or by running testPython from within sbt. sbt test also depends on testPython, so running the scala tests will run the python tests too.
This PR has three main things:
.pylintrc
file, so that everyone working on this can use the same settings for pylint. I highly recommend using pylint for error and style checking, and you can have vim do it automatically as you're writing code if you install the Syntastic plugin.requirements.txt
file, which contains a list of all of the python packages needed to run this code (it's probably incomplete, but at least it's a start). I added a few new requirements in this PR, so this makes it so that you just runpip install -r requirements.txt
to grab all of this code's dependencies, instead of trying to run it and only finding at runtime that you're missing dependencies.py.test --cov=dlfa
from the main directory, or by runningtestPython
from withinsbt
.sbt test
also depends ontestPython
, so running the scala tests will run the python tests too.