Here you can find details on how you can contribute to wonderwords, the rules and information you need to get started.
If you notice any issues with the software, we would love to know. Please consider opening up an issue. Your contributions are greatly appreciated.
- Navigate to the homw page of this repository: https://github.com/mrmaxguns/wonderwordsmodule
- Go to the
Issues
tab (next to the code tab). - Click on the green button on the right side of the screen that says
New issue
. - Explain your issue in detail and provide code snippets (if necessary).
- Submit the issue. We will look into it.
Another way to help out is to fork the repository. You can then experiment on the forked repo and submit a pull request once you have made your changes.
- Go to the home page of the repository and click
Fork
on the top right corner. - Now you have a forked repository where you can work at no risk with.
- Commiting with git. Go to the homepage of your forked repository. Then navigate to the
Code
tab. - Click on
Clone or download
(the green button in the right side) and copy the url. - Go to your command line, navigate to where you want to clone the repository to, and type
git clone
followed by the copied url:
$ git clone https://github.com/YOUR-USERNAME/wonderwordsmodule
- Now navigate into the
wonderordsmodule
directory. - Set up the remote by typing the following into the command line:
$ git remote add upstream https://github.com/mrmaxguns/wonderwordsmodule.git
- To set up a virtual environment, you will use python's venv. To create a virtual environment, use the following command:
$ python3 -m venv venv
- Now activate the virtual environment:
- For cmd.exe (windows):
venv\Scripts\activate.bat
- For bash:
source venv/bin/activate
- For other shells, here is a full list of commands
- Install requirements by running:
pip install -r requirements.txt
- Now you have set up the forked repository and set yourself up. You can now create branches, commits, etc. Once you are ready to merge your work to wonderwords, run tests and submit a pull request.
To run tests, make sure you are in the main wonderwords
directory. Testing is done with Pytest, which is automatically installed from requirements.txt
. To run tests, use the following command:
pytest tests/