Make sure you have the prerequisites installed (for adding code):
- Python (Versions from 3.8)
- virtualenv or another virtual environment tool
- git
Create and activate a virtual environment.
Install mkdocs_licenseinfo
:
# Install mkdocs_licenseinfo as an editable install with the dev dependencies
pip install -e ".[dev]"
The codebase uses pre-commit
, so please use pre-commit install
and pre-commit install-hooks
to make sure the pre-commit hooks are installed correctly.
Create a branch to make your changes in:
# Checkout a new branch and make your changes
git checkout -b my-branch
# Make your changes...
mkdocs_licenseinfo
uses nox
for running tests.
# You can either use session tags with the -s flag
nox -s test lint
# There are also sessions: security, types, pre-commit
# or the -t lint and test tags
nox -t lint
# This includes lint, pre-commit, security (bandit and pipenv check), types
nox -t test
If you have edited the docs (or signatures/classes), please check the docs:
nox -t docs
They will be output to build/docs
Commit your changes, push your branch, and create a pull request to the main mkdocs_licenseinfo repo, and please include clear information in the pull request for review.