Note: This script assumes you are running this from within an existing git repository, and specifically in the src directory until that depenenency is removed.
This project assumes the following directory structure in the target repository:
>tree -d ~/workspace/CoreInfraBuilder-Dev -L 3 -I node_modules
/home/johnh/workspace/CoreInfraBuilder-Dev
├── coverage
│ └── tmp
├── pipeline
│ └── templates
├── scripts
│ └── pipeline
├── src
│ ├── config
│ ├── dev-shared
│ │ ├── rg1
│ │ └── rg2
│ ├── t-series
│ │ ├── rg1
│ │ └── rg2
│ ├── x-series
│ │ ├── rg1
│ │ └── rg2
│ └── y-series
│ ├── rg1
│ └── rg2
├── tests
│ └── unittests
│ ├── config
│ ├── n-dir
│ └── dev-shared
└── utilitiespython3 /home/azureuser/workspace/PulumiImporter/PulumiImporter/boostrap_stack.py --sub hub --rg {rgName} --dest monitoringNote: This project is setup to run checks on git commit activities as well
# These assume you ran the setup below
# Unit tests
python -m pytest tests
# Formatting / linting
ruff --check . --diff
# Type checks
mypy .
# Code security checks
bandit -r . -c pyproject.toml
# Or, pre-commit manually
pre-commit run --all-files# Install pip if needed
sudo apt install pip
# Activate venv and install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install poetry
poetry install# If you need to run a commit without running the pre-commit hooks, you can use the --no-verify flag
git commit --no-verify -m ""