-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Prerequisites:
- az CLI
- Cookiecutter
- Python3 A problem I faced with this is that I had "python" not "python3" so, it always errored executing this line.
subprocess.run(["python3", "-m" "ruff", "check", "--fix", "src"])
A good advice is to start with the base working code that you want to generate using this project, not the other way around as the project is complicated. so, having a reference that you are trying to generate using this project (like a base working code sample) would help you a lot to validate the generated sample and know where to make the changes.
So, you would search for the places where the code changed and try to edit it according to it.
To generate a template using the code you are working on you can use the following command:
cookiecutter ../Azure-Python-Standardization-Template-Generator
Sometimes the infra may be missing the core modules for a bicep that you need so, you may need to add it to the infra/core and use it like this. 658a0f9
The docker-compose.yml file for the devcontainer template extends the db image definition from the templates/ folder so, you may need to add definition there. fcb4309
If you did everything correctly adding more features would be as simple as editing two files d346a55 these are the two files I needed to change to enable ACA.
This project is amazing because it can be easily extended.