git clone https://github.com/[YOUR GITHUB ACCOUNT]/pycontw-postevent-report-generator.git
git remote add upstream "https://github.com/pycontw/pycontw-postevent-report-generator"
You can pull the latest code in master branch through git pull upstream master
afterward.
git checkout -b [YOUR FEATURE]
python -m pip install pipx
python -m pipx install pipenv invoke
python -m pipx ensurepath
inv env.init-dev
If you want to develop it, please run:
inv build.develop
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
[Optional] Check your coding style through pylint
. Note that you do not have to fix all the issues warned by pylint
.
inv style.pylint
Ensure the packages installed are secure
inv secure
[Optional] Check whether there is common security issue in the code. Note that you do not have to fix all the issues warned by bandit
inv secure.bandit
inv build.test-cli