Files
osprofiler/.pre-commit-config.yaml
Takashi Kajinami 598db3947e Exclude tests directory from bandit check
... because these are not used in actual deployments.

Change-Id: Ib089a389080d8aa8943e3ebb44563859414a69f9
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-02 23:59:02 +09:00

30 lines
788 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: mixed-line-ending
args: ['--fix', 'lf']
exclude: '.*\.(svg)$'
- id: fix-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
- id: check-yaml
files: .*\.(yaml|yml)$
- repo: https://opendev.org/openstack/hacking
rev: 7.0.0
hooks:
- id: hacking
additional_dependencies: []
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
hooks:
- id: bandit
args: ['-c', 'pyproject.toml']
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py3-only]