Function to reveal the math attributes from arbitrary text
Using Anaconda, open the Anaconda Prompt and run the command:
conda env creeate -n wordish -f env_file.yaml
Activate the environment using the command:
conda activate wordish
Then, run the environment by typing:
python -m wordish.main --file wordish\text_sample.txt
NB! Make sure to write the correct path! In your favorite IDE choose the newly created python environment.
In tasks.py
different utility function are defined for code style, formatting, syntax and tests.
In terminal window run pycodestyle using:
invoke style
Correct the code according to the output.
In terminal window run pylint using:
invoke lint
Correct the code according to the output.
In terminal window run unit tests using:
invoke unit-tests
(NB! The underscore becomes a dash when calling the function.)
Important to isolate each test to its input and output reference frame using mocking functionality.
Coverage should aim for 100%.
In terminal window run integration tests using:
invoke unit-tests
Coverage should aim for 100%.