Create mg.py

This commit is contained in:
Luke Weiler
2025-06-23 20:44:38 -04:00
parent 2dbd0efac6
commit 7ea9bd4a8a
2 changed files with 41 additions and 1 deletions

View File

@@ -15,6 +15,6 @@ If you have never contributed to open source before here is a quick explanation
* Fork this repository on Github. This creates a copy of the current code that you can edit and make changes to.
* Navigate to your fork and make your changes. This could be done by cloning and making changes locally on your computer. You can find many tutorials on this online. You could also edit directly on Github if you don't have access to a text editor but doing this, you will not be able to test your function.
* To test your changes, open a terminal and from the project root, run `pip install -e .` to install a locally editable version of the mathgenerator package. Then, run a python terminal with `python`, `import mathgenerato` and call the method you worked on.
* To test your changes, open a terminal and from the project root, run `pip install -e .` to install a locally editable version of the mathgenerator package. Then, run `mg.py` with your generator name to print a generated problem like `./scripts/mg.py addition`
* Commit and create a pull request. Navigate to [the math generator repository pull request tab](https://github.com/Todarith/mathGenerator/pulls) and click New Pull Request. Then click compare accross forks. Select your fork and branch as the head branch and leave a description. Then click Create Pull Request.
* If all goes well, your request will be approved and your generator added. Congratulations!