Formatting and style
Code can be auto-formatted using black
:
Docker
docker run -it -v $PWD:/app "parsertongue/clu-phontools:latest" black
Anaconda
source activate clu-phontools
# 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-phontools:latest" mypy --ignore-missing-imports --follow-imports=skip --strict-optional .
Anaconda
source activate clu-phontools
# execute the following command from the project root:
mypy --ignore-missing-imports --follow-imports=skip --strict-optional .