adding pre-commit auto-update GH action and bumping plugin versions (#2428)

* adding pre-commit auto-update GH action and bumping plugin versions

* running updated pre-commit plugins

* sorry to revert, but pylint complained

* Update .pre-commit-config.yaml

Co-authored-by: Wing Lian <wing.lian@gmail.com>

---------

Co-authored-by: Dan Saunders <dan@axolotl.ai>
Co-authored-by: Wing Lian <wing.lian@gmail.com>
This commit is contained in:
Dan Saunders
2025-03-21 11:02:43 -04:00
committed by GitHub
parent 187227d837
commit c907ac173e
132 changed files with 479 additions and 301 deletions

View File

@@ -1,6 +1,7 @@
"""
tests for chat_template prompt strategy
"""
# pylint: disable=duplicate-code
import logging
import unittest

View File

@@ -1,6 +1,7 @@
"""
Test module for alpaca integration w chatml
"""
import pytest
from datasets import Dataset
from tokenizers import AddedToken

View File

@@ -1,6 +1,7 @@
"""
Tests for utils in axolotl.utils.chat_templates
"""
import unittest
import pytest

View File

@@ -920,9 +920,11 @@ class TestChatTemplateConfigurations:
)
variables = prompter.get_chat_template_msg_variables(
actual_jinja_template
if actual_jinja_template
else actual_tokenizer.get_chat_template(),
(
actual_jinja_template
if actual_jinja_template
else actual_tokenizer.get_chat_template()
),
"messages",
)

View File

@@ -1,6 +1,7 @@
"""
Tests for loading DPO preference datasets with chatml formatting
"""
import unittest
import pytest

View File

@@ -1,6 +1,7 @@
"""
tests for jinja_template_analyzer
"""
import logging
import pytest

View File

@@ -1,6 +1,7 @@
"""
Test module for raw i/o data for prompts
"""
import pytest
from datasets import Dataset
from tokenizers import AddedToken