Simple cli tool that converts a simple yaml into a compatible Locust Kubernetes Operator custom resource.
To add and install this package as a dependency of your project, run poetry add intensive-brew.
To view this app's commands once it's installed, run intensive-brew --help. Alternatively, you can also use docker compose run --rm app --help.
Setup: once per device
- Install Docker Desktop.
- Enable Use Docker Compose V2 in Docker Desktop's preferences window.
- Install Poetry.
- Install Pre-commit
- On macOS run:
brew install pre-commit
- On macOS run:
Developing
- Clone repository
- Setup development environment
- Stage 1: setup IntelliJ to work with the project
- [prerequisite] Python plugin for IntelliJ from JetBrains.
- Step 1: in IntelliJ go to
File→Project Structure→SDKs→ + →Add Python SDK...→Poetry Environment→OK- An environment will be instantiated and dependencies will be installed
- Step 2: Select the created SDK as the SDK for the project
File→Project Structure→Project→SDK→SDK with project name
- Stage 2: from the terminal
cdto the repository location- Install git pre-commit hooks
pre-commit install --install-hooks
- Stage 1: setup IntelliJ to work with the project
The project uses mkdocs.org to build and maintain its documentation.
-
Commands
mkdocs new [dir-name]- Create a new project.mkdocs serve- Start the live-reloading docs server.mkdocs build- Build the documentation site.mkdocs -h- Print help message and exit.
-
Project layout
mkdocs.yml # The configuration file. docs/ index.md # The documentation homepage. ... # Other markdown pages, images and other files.
- This project follows the Conventional Commits standard to automate Semantic Versioning and Keep A Changelog with Commitizen.
- Run
poefrom within the development environment to print a list of Poe the Poet tasks available to run on this project. - Run
poetry add {package}from within the development environment to install a run time dependency and add it topyproject.tomlandpoetry.lock. Add--group testor--group devto install a CI or development dependency, respectively. - Run
poetry remove {package}from within the development environment to uninstall a run time dependency and remove it frompyproject.tomlandpoetry.lock. Add--group testor--group devto uninstall a CI or development dependency, respectively. - Run
poetry updatefrom within the development environment to upgrade all dependencies to the latest versions allowed bypyproject.toml. - Run
cz bumpto bump the package's version, update theCHANGELOG.md, and create a git tag. - Project has a protection against pushing to
main/masterbranches by utilizing pre-commit hooks.