Bug 1524444 - Respect -n for linting in py3/py2 and better support it in other linters. r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D6847

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Justin Wood 2019-02-01 20:39:05 +00:00
parent 03963da9ad
commit bf9836a1bb

View File

@ -40,6 +40,8 @@ class BaseType(object):
config.get('extensions', []),
)
config['exclude'] = exclude
elif config.get('exclude'):
del config['exclude']
if not paths:
return