Suggesting changes to the code
Suggestions for improvements are very welcome. Please use the GitHub issue tracker or submit a pull request!
Pull requests
To set up an environment for developing and submitting a pull request, you could:
Install pyenv
Clone the repository
$ git clone https://github.com/hakonhagland/vocabuilder.git
$ cd vocabuilder
Install the python versions listed in .python_version with pyenv
- On Linux and macOS:
Install Poetry : Run :
curl -sSL https://install.python-poetry.org | python3 -
On macOS: update PATH environment variable in your ~/.zshrc init file:
export PATH="/Users/username/.local/bin:$PATH"
such that Zsh can find thepoetry
command
- On Windows (PowerShell):
Install poetry :
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
update
PATH
to include the installation folder, e.g.C:\Users\username\AppData\Roaming\Python\Scripts
- Then, from the root directory of this repository:
run
poetry install
to install dependencies into a virtual environmentrun
poetry install --all-extras
to install the sphinx extras for documentationrun
poetry shell
to activate the virtual environmentrun
pytest
to run the test suiterun
pre-commit install
to install the pre-commit hooksrun
make coverage
to run unit tests and generate coverage reportrun
make docker-image
to build docker imagerun
make run-docker-image
to run the docker image