Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Prikshit7766 committed Nov 8, 2023
1 parent 4798866 commit 1302260
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions langtest/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class Warnings(metaclass=ErrorsWithCodes):
W009 = ("Removing samples where no transformation has been applied:\n")
W010 = ("- Test '{test}': {count} samples removed out of {total_sample}\n")
W011 = ("{class_name} successfully ran!")
W012 =("You haven't provided the {var1}. Loading the default {var1}: {var2}")
W012 = ("You haven't provided the {var1}. Loading the default {var1}: {var2}")


class Errors(metaclass=ErrorsWithCodes):
"""
Expand Down Expand Up @@ -222,8 +223,9 @@ class Errors(metaclass=ErrorsWithCodes):
E080 = ("Invalid SpaCy Pipeline. Expected return type is {expected_type} "
"but pipeline returns: {returned_type}")
E081 = ("Provded the task is not supported in the {hub} hub.")
E082 =("Either subset: {subset} or split: {split} is not valid for {dataset_name}. Available subsets and their corresponding splits: {available_subset_splits}")
E083= ("split: {split} is not valid for {dataset_name}. Available splits: {available_splits}")
E082 = ("Either subset: {subset} or split: {split} is not valid for {dataset_name}. Available subsets and their corresponding splits: {available_subset_splits}")
E083 = ("split: {split} is not valid for {dataset_name}. Available splits: {available_splits}")


class ColumnNameError(Exception):
"""ColumnNameError class is used to raise an exception
Expand Down

0 comments on commit 1302260

Please sign in to comment.