Merge pull request #71 from anthonywu/typos-check

introduce pre-commit typos check
This commit is contained in:
Filip Strand 2024-10-10 20:31:21 +02:00 committed by GitHub
commit faaf905667
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.6
rev: v0.6.9
hooks:
# Run the linter.
- id: ruff
@ -10,3 +10,7 @@ repos:
# Run the formatter.
- id: ruff-format
types_or: [python, pyi]
- repo: https://github.com/crate-ci/typos
rev: v1.26.0
hooks:
- id: typos

5
_typos.toml Normal file
View File

@ -0,0 +1,5 @@
# this is the config file for typos-cli, part of "pre-commit run"
# use "typos --dump-config" to disocver other configs to override
[default]
extend-ignore-identifiers-re = ["EmbedND", "embed_nd", "alle"]

View File

@ -127,7 +127,7 @@ class Flux1Controlnet:
output_dir=stepwise_output_dir,
)
# Embedd the controlnet reference image
# Embed the controlnet reference image
control_image = ImageUtil.load_image(controlnet_image_path)
control_image = ControlnetUtil.scale_image(config.height, config.width, control_image)
control_image = ControlnetUtil.preprocess_canny(control_image)

View File

@ -5,7 +5,7 @@ from mlx import nn
from mflux.config.model_config import ModelConfig
from mflux.config.runtime_config import RuntimeConfig
from mflux.models.transformer.ada_layer_norm_continous import (
from mflux.models.transformer.ada_layer_norm_continuous import (
AdaLayerNormContinuous,
)
from mflux.models.transformer.embed_nd import EmbedND