validate plugins before keys in config files

This commit is contained in:
Gleb Nikonorov 2020-06-07 14:10:20 -04:00
parent 42deba59e7
commit d2bb67bfda
1 changed files with 1 additions and 1 deletions

View File

@ -1041,8 +1041,8 @@ class Config:
self.known_args_namespace = ns = self._parser.parse_known_args( self.known_args_namespace = ns = self._parser.parse_known_args(
args, namespace=copy.copy(self.option) args, namespace=copy.copy(self.option)
) )
self._validate_keys()
self._validate_plugins() self._validate_plugins()
self._validate_keys()
if self.known_args_namespace.confcutdir is None and self.inifile: if self.known_args_namespace.confcutdir is None and self.inifile:
confcutdir = py.path.local(self.inifile).dirname confcutdir = py.path.local(self.inifile).dirname
self.known_args_namespace.confcutdir = confcutdir self.known_args_namespace.confcutdir = confcutdir