Skip to content

johnhaczewski/PulumiImporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

python pre-commit Checked with mypy Code style: ruff security: bandit

Usage

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
└── utilities
python3 /home/azureuser/workspace/PulumiImporter/PulumiImporter/boostrap_stack.py --sub hub --rg {rgName} --dest monitoring

Formatting Checks

Note: 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

Setup

# 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

Notes

# 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 ""

About

An Azure resource importer for Pulumi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages