Formatting and style

Code can be auto-formatted using black:

Docker

docker run -it -v $PWD:/app "parsertongue/clu-spacy:latest" black

Anaconda

source activate clu-spacy
# execute the following command from the project root:
black

Typehints

The code makes use of Python type hints.

Docker

To perform type checking, run the following command:

docker run -it -v $PWD:/app "parsertongue/clu-spacy:latest" mypy --ignore-missing-imports --follow-imports=skip --strict-optional .

Anaconda

source activate clu-spacy
# execute the following command from the project root:
mypy --ignore-missing-imports --follow-imports=skip --strict-optional .