diff --git a/pre_commit_hooks/mixed_line_ending.py b/pre_commit_hooks/mixed_line_ending.py index b116f50..59d78ed 100644 --- a/pre_commit_hooks/mixed_line_ending.py +++ b/pre_commit_hooks/mixed_line_ending.py @@ -6,28 +6,23 @@ import sys from enum import Enum -class CLIOption(Enum): - def __init__(self, optName): - self.optName = optName - - -class LineEnding(CLIOption): +class LineEnding(Enum): CR = '\r', '\\r', 'cr', re.compile(r'\r', re.DOTALL) CRLF = '\r\n', '\\r\\n', 'crlf', re.compile(r'\r\n', re.DOTALL) LF = '\n', '\\n', 'lf', re.compile(r'(?