Files
zaqar/.pre-commit-config.yaml
Takashi Kajinami 94149e6fa5 Run pyupgrade to clean up Python 2 syntaxes
... because Python 2 is no longer supported.

Change-Id: I2c2caf9f4c7e0f3260827c3b942993723a873245
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-16 00:50:20 +09:00

30 lines
795 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: []
exclude: '^(doc|releasenotes|tools)/.*$'
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py3-only]
- repo: https://github.com/PyCQA/doc8
rev: v2.0.0
hooks:
- id: doc8