Files
aa4d9e16b134bd1996daf718661ae84f42f3e774
codegenerator /.pre-commit-config.yaml
Artem Goncharov 298e6753ed Update typos version
Update verion of typos that we use to fix typos in the openapi specs.
Since there are quite lot findings (and fixes cause other failures) also
update pre-commit and the resulting changes.
Change-Id: I795215942e1587bf914d923edd09070fe729e9d5
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
2025年10月10日 08:30:13 +02:00

52 lines
1.3 KiB
YAML

---
default_language_version:
# force all unspecified python hooks to run python3
python:python3
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)$
exclude:'^zuul.d/.*$'
- repo:https://github.com/PyCQA/doc8
rev:v2.0.0
hooks:
- id:doc8
- repo:https://github.com/crate-ci/typos
rev:v1.38.1
hooks:
- id:typos
- repo:https://github.com/astral-sh/ruff-pre-commit
rev:v0.14.0
hooks:
- id:ruff
args:['--fix','--unsafe-fixes']
- id:ruff-format
# - repo: https://github.com/psf/black
# rev: 24.2.0
# hooks:
# - id: black
# args: ['-l', '79']
# exclude: '^codegenerator/templates/.*$'
- repo:https://github.com/pre-commit/mirrors-mypy
rev:v1.18.2
hooks:
- id:mypy
language:python
types:[python]
args:["codegenerator"]
pass_filenames:false
additional_dependencies:
- types-decorator
- types-docutils
- types-PyYAML