git clone https://github.com/[YOUR GITHUB ACCOUNT]/markdown-mermaidjs.git
git remote add upstream "https://github.com/Lee-W/markdown-mermaidjs"
You can pull the latest code in main branch through git pull upstream main
afterward.
git checkout -b [YOUR FEATURE]
python -m pip install pipx
python -m pipx install uv invoke
python -m pipx ensurepath
By default, the tasks leverage pty under the covers, which does not support Windows. Either run this via WSL or pass --no-pty to commands that demand it.
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
or on Windows (currently throws an error when run outside of cmd.exe):
inv git.commit --no-pty
Make sure all test cases pass.
inv test
or on Windows:
inv test --no-pty
Check the test coverage and see where you can add test cases.
inv test.cov
Format your code through ruff
.
inv style.format
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
or on Windows:
inv secure --no-pty