diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py index 59bf60f..3586cca 100644 --- a/src/flake8/options/config.py +++ b/src/flake8/options/config.py @@ -133,7 +133,10 @@ class MergedConfigParser(object): #: Set of types that should use the #: :meth:`~configparser.RawConfigParser.getint` method. - GETINT_TYPES = {'int', 'count'} + GETINT_TYPES = {'int'} + #: Set of actions that should use the + #: :meth:`~configparser.RawConfigParser.getint` method. + GETINT_ACTIONS = {'count'} #: Set of actions that should use the #: :meth:`~configparser.RawConfigParser.getbool` method. GETBOOL_ACTIONS = {'store_true', 'store_false'} @@ -185,6 +188,8 @@ class MergedConfigParser(object): method = config_parser.get if option.type in self.GETINT_TYPES: method = config_parser.getint + elif option.action in self.GETINT_ACTIONS: + method = config_parser.getint elif option.action in self.GETBOOL_ACTIONS: method = config_parser.getboolean