Files
master
codegenerator /.pre-commit-config.yaml

52 lines
1.3 KiB
YAML
Raw Permalink Normal View History

default_language_version:
# force all unspecified python hooks to run python3
python:python3
repos:
- repo:https://github.com/pre-commit/pre-commit-hooks
- id:trailing-whitespace
- id:mixed-line-ending
args:['--fix','lf']
exclude:'.*\.(svg)$'
- id:check-merge-conflict
- id:debug-statements
- id:check-yaml
files:.*\.(yaml|yml)$
exclude:'^zuul.d/.*$'
- repo:https://github.com/PyCQA/doc8
- id:doc8
rev:v1.38.1
hooks:
- id:typos
- repo:https://github.com/astral-sh/ruff-pre-commit
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/.*$'
- id:mypy
language:python
types:[python]
args:["codegenerator"]
pass_filenames:false
additional_dependencies:
- types-decorator