tools used:
- make
- git
- asdf version manager
use asdf to ensure required tools are installed ... configured tools are in .tool-versions
cd ~/work/terraform-aws-metrics-lambda
for plugin in $(grep -E '^\w+' .tool-versions | cut -d' ' -f1); do asdf plugin add $plugin; done
asdf installgit secrets scanning uses the awslabs https://github.com/awslabs/git-secrets there are options on how to install but
# if the command `git secrets` does not work in your repo
# the git-secrets script needs to be added to somewhere in your PATH
# for example if $HOME/.local/bin is in your PATH environment variable
# then:
wget https://raw.githubusercontent.com/awslabs/git-secrets/refs/heads/master/git-secrets -O ~/.local/bin/git-secrets
chmod +x ~/.local/bin/git-secretspre-commit installmake install
source .venv/bin/activatestart the docker containers
make upmake testto test all python versions configured
make toxproject uses:
run both with
make lintor individually with
make mypyor
make ruffproject uses:
lint checks will fail if the code is not formatted correctly
make blackthe git-secrets script will try and avoid accidental committing of secrets patterns are excluded using .gitdisallowed and allow listed using .gitallowed You can check for secrets / test patterns at any time though with
make check-secrets-all