Skip to content

Commit

Permalink
CI: update Ruff, use GitHub output format (and test that it works...)
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Nov 20, 2023
1 parent 1f56c0f commit af91f34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ jobs:
with:
python-version: "3.11"
- uses: pre-commit/[email protected]
env:
RUFF_OUTPUT_FORMAT: github
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.3"
rev: "v0.1.6"
hooks:
- id: ruff
args:
Expand Down
2 changes: 1 addition & 1 deletion inference-mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, model_path: str, checkpoint_path: str) -> None:
padding_side='left',
add_eos_token=True,
)
logger.info('Loading model...')
loggeer.info('Loading model...')

Check failure on line 21 in inference-mistral.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (F821)

inference-mistral.py:21:9: F821 Undefined name `loggeer`
model = transformers.AutoModelForCausalLM.from_pretrained(
model_path,
quantization_config=get_quantization_config(),
Expand Down

0 comments on commit af91f34

Please sign in to comment.