Represent an error with a namedtuple

This commit is contained in:
Ian Cordasco 2016-02-06 13:51:35 -06:00
parent 276f823de6
commit 5870d136ed

View file

@ -1,4 +1,5 @@
"""Implementation of the StyleGuide used by Flake8."""
import collections
import logging
import enum
@ -32,6 +33,13 @@ class Decision(enum.Enum):
Selected = 'selected error'
Error = collections.namedtuple('Error', ['code',
'filename',
'line_number',
'column_number',
'text'])
class StyleGuide(object):
"""Manage a Flake8 user's style guide."""