https://github.com/argodevops/python-lint-examples
Repository of Python linting and example code
https://github.com/argodevops/python-lint-examples
black lint pre-commit-hook python python3 ruff
Last synced: 9 months ago
JSON representation
Repository of Python linting and example code
- Host: GitHub
- URL: https://github.com/argodevops/python-lint-examples
- Owner: argodevops
- Created: 2022-09-04T15:34:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T15:56:48.000Z (over 2 years ago)
- Last Synced: 2025-01-25T22:21:14.199Z (over 1 year ago)
- Topics: black, lint, pre-commit-hook, python, python3, ruff
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Lint Example
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
## Pre-requisites
Run ` $ pip install -r requirements.txt`
## pre-commit
Runs hooks on every commit to automatically point out issues in code.
Run ` $ pre-commit install` to setup the git hook scripts
https://pre-commit.com/
## black
Black is the uncompromising Python code formatter.
Run `black *.py`
https://pypi.org/project/black/
## ruff
Pylint is a static code analyser for Python.
Run `ruff *.py`
https://github.com/astral-sh/ruff