git clone https://github.com/[YOUR GITHUB ACCOUNT]/discord-bot.git
git remote add upstream "https://github.com/allen91wu/discord-bot"
You can pull the latest code in main branch through git pull upstream main
afterward.
git checkout -b [YOUR FEATURE]
python3 -m pip install pipx
python3 -m pipx install invoke
python3 -m pipx install pipenv
python3 -m pipx ensurepath
inv env.init-dev
Note that this project follows conventional-commit and bumps version based on it. Use the following command to commit your changes.
inv git.commit
Make sure all test cases pass.
inv test
Check the test coverage and see where you can add test cases.
inv test.cov
Format your code through black
and isort
.
inv style.reformat
Make sure your coding style passes all enforced linters.
inv style
Ensure the packages installed are secure, and no server vulnerability is introduced
inv secure