The example project installs pre-commit, black and pylint to demonstrate how to apply formatting and linting to a git commit.
Contains example Python scripts which can be adapted and may be useful.
- run_simulation.py - runs a simulation command based on an environment and type of simulation command, orginanlly written for running Gatling load simulations
Run $ pip install -r requirements.txt
Runs hooks on every commit to automatically point out issues in code.
Run $ pre-commit install to setup the git hook scripts
Black is the uncompromising Python code formatter.
Run black *.py
https://pypi.org/project/black/
Pylint is a static code analyser for Python.
Run ruff *.py