2023-01-19 14:08:49 +01:00
|
|
|
# Pre-commit hooks to run tests and ensure code is cleaned.
|
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
repos:
|
2023-11-29 18:47:47 +01:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
|
|
rev: v3.15.0
|
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: ['--keep-percent-format', '--py37-plus']
|
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
rev: 23.11.0
|
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
args: ['--target-version', 'py37', '--line-length', '100']
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
|
|
rev: 5.12.0
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
args: ['--profile', 'black', '--line-length', '100']
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
|
|
rev: 6.1.0
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
args: ['--max-line-length=100']
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: pylint
|
|
|
|
name: pylint
|
|
|
|
entry: pylint
|
|
|
|
language: system
|
|
|
|
types: [python]
|
|
|
|
require_serial: true
|
|
|
|
- repo: https://github.com/PyCQA/bandit
|
|
|
|
rev: 1.7.5
|
|
|
|
hooks:
|
|
|
|
- id: bandit
|
|
|
|
args: [--skip, "B101", --recursive, "mylib"]
|