mirror of
https://github.com/run-llama/image-generation-agent.git
synced 2026-06-30 21:17:55 -04:00
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
---
|
|
default_language_version:
|
|
python: python3
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: check-byte-order-marker
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- id: check-toml
|
|
- id: check-yaml
|
|
- id: detect-private-key
|
|
- id: end-of-file-fixer
|
|
- id: mixed-line-ending
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
rev: v0.11.8
|
|
hooks:
|
|
- id: ruff
|
|
args: [--exit-non-zero-on-fix, --fix]
|
|
exclude: ".*poetry.lock|.*_static"
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.0.1
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies:
|
|
[
|
|
"types-requests",
|
|
"types-Deprecated",
|
|
"types-redis",
|
|
"types-setuptools",
|
|
"types-PyYAML",
|
|
"types-protobuf==4.24.0.4",
|
|
]
|
|
args:
|
|
[
|
|
--namespace-packages,
|
|
--explicit-package-bases,
|
|
--disallow-untyped-defs,
|
|
--ignore-missing-imports,
|
|
--python-version=3.9,
|
|
]
|
|
entry: bash -c "export MYPYPATH=ingest_anything"
|
|
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
rev: 23.10.1
|
|
hooks:
|
|
- id: black-jupyter
|
|
name: black-docs-py
|
|
alias: black
|
|
files: ^(docs/|examples/)
|
|
# Using PEP 8's line length in docs prevents excess left/right scrolling
|
|
args: [--line-length=79]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v3.0.3
|
|
hooks:
|
|
- id: prettier
|
|
|
|
- repo: https://github.com/pappasam/toml-sort
|
|
rev: v0.23.1
|
|
hooks:
|
|
- id: toml-sort-fix
|