tools used:
- make
- git
- asdf version manager
use asdf to ensure required tools are installed ... configured tools are in .tool-versions
cd ~/work/mesh-client
asdf plugin add python
asdf plugin add poetry
asdf plugin add terraform
asdf plugin add tfsec
asdf install
make refresh-hooks
make install
source .venv/bin/activate
start the mesh-sandbox docker container
make up
make test
to test all python versions configured
make tox
project uses:
run both with
make lint
or individually with
make mypy
or
make ruff
project uses:
lint checks will fail if the code is not formatted correctly
make black
the git-secrets script will try and avoid accidental committing of secrets
patterns are excluded using .gitdisallowed and allow listed using .gitallowed
if the git hooks are registered make refresh hooks
then secrets will be scanned for in the pre-commit hook.
You can check for secrets / test patterns at any time though with
make check-secrets-all