Merge pull request #71 from anthonywu/typos-check
introduce pre-commit typos check
This commit is contained in:
commit
faaf905667
@ -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
5
_typos.toml
Normal 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"]
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user