Documentation¶
Implementation¶
See the implementation document for detailed information on the package and the theory behind it.
Commands¶
This is a quick reference for common commands used throughout the project.
| install dev | $ git clone https://github.com/jchiyah/data-validation.git data-validation
$ cd ./data-validation
$ python3 -m venv env
$ source env/Scripts/activate
$ pip3 install -r requirements/dev.txt
$ python3 setup.py install
|
| tests | $ pytest -svv
|
| build documentation | $ cd docsrc
$ make html
|
| publish documentation | $ cd docsrc
$ make github
And commit to GitHub! |
Style¶
This is a quick reference to the coding style used to develop this code. Future work should aim to follow a similar style.
| function name | function_name()
|
| private func | _private_function_name()
|
| variable name | normal_variable
objectVariable
_private_variable
|
| func comments | reST style, like below: |
| style | def function_x():
"""
This is reST style.
:param param1: this is a first param
:param param2: this is a second param
:returns: this is a description of what is returned
:raises keyError: raises an exception
"""
do_something()
|
| whitespace | whitespace = your_personal_preference(tabs or spaces)
# do not mix both
|
| line endings | Unix \n |
| more info | PEP 8 Style Guide |