diff options
author | Bernát Gábor <bgabor8@bloomberg.net> | 2020-10-17 16:49:38 +0100 |
---|---|---|
committer | Bernát Gábor <bgabor8@bloomberg.net> | 2020-10-17 16:49:38 +0100 |
commit | 860983a992f5b6a613c111b5e1cbfd2a7213bea8 (patch) | |
tree | 1531b4bd922df837d173fbc222bde20e367f3303 /src/tox/config | |
parent | df44c1c8bee69090064e567142e438ccb73a3d23 (diff) | |
download | tox-git-860983a992f5b6a613c111b5e1cbfd2a7213bea8.tar.gz |
Bump pre-commit features
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Diffstat (limited to 'src/tox/config')
-rw-r--r-- | src/tox/config/cli/env_var.py | 6 | ||||
-rw-r--r-- | src/tox/config/cli/ini.py | 6 | ||||
-rw-r--r-- | src/tox/config/cli/parser.py | 5 | ||||
-rw-r--r-- | src/tox/config/core.py | 10 | ||||
-rw-r--r-- | src/tox/config/source/ini/__init__.py | 11 |
5 files changed, 31 insertions, 7 deletions
diff --git a/src/tox/config/cli/env_var.py b/src/tox/config/cli/env_var.py index 39fe5c2b..6e46c6b4 100644 --- a/src/tox/config/cli/env_var.py +++ b/src/tox/config/cli/env_var.py @@ -25,7 +25,11 @@ def get_env_var(key, of_type): return of_type, source except Exception as exception: logging.warning( - "env var %s=%r cannot be transformed to %r because %r", environ_key, value, of_type, exception, + "env var %s=%r cannot be transformed to %r because %r", + environ_key, + value, + of_type, + exception, ) diff --git a/src/tox/config/cli/ini.py b/src/tox/config/cli/ini.py index b5b2eb87..1a92c5f4 100644 --- a/src/tox/config/cli/ini.py +++ b/src/tox/config/cli/ini.py @@ -47,7 +47,11 @@ class IniConfig: result = None except Exception as exception: logging.warning( - "%s key %s as type %r failed with %r", self.config_file, key, of_type, exception, + "%s key %s as type %r failed with %r", + self.config_file, + key, + of_type, + exception, ) result = None self._cache[cache_key] = result diff --git a/src/tox/config/cli/parser.py b/src/tox/config/cli/parser.py index 4fff9c84..6339149d 100644 --- a/src/tox/config/cli/parser.py +++ b/src/tox/config/cli/parser.py @@ -149,7 +149,10 @@ class ToxParser(ArgumentParserWithEnvAndConfig): color = "yes" if sys.stdout.isatty() else "no" verbosity_group.add_argument( - "--colored", default=color, choices=["yes", "no"], help="should output be enriched with colors", + "--colored", + default=color, + choices=["yes", "no"], + help="should output be enriched with colors", ) self.fix_defaults() diff --git a/src/tox/config/core.py b/src/tox/config/core.py index b8399f2c..236deaa4 100644 --- a/src/tox/config/core.py +++ b/src/tox/config/core.py @@ -20,8 +20,14 @@ def tox_add_core_config(core: ConfigSet): desc="temporary directory cleaned at start", ) core.add_config( - keys=["env_list", "envlist"], of_type=EnvList, default=[], desc="define environments to automatically run", + keys=["env_list", "envlist"], + of_type=EnvList, + default=[], + desc="define environments to automatically run", ) core.add_config( - keys=["skip_missing_interpreters"], of_type=bool, default=True, desc="skip missing interpreters", + keys=["skip_missing_interpreters"], + of_type=bool, + default=True, + desc="skip missing interpreters", ) diff --git a/src/tox/config/source/ini/__init__.py b/src/tox/config/source/ini/__init__.py index 9ec14e6f..da5678b7 100644 --- a/src/tox/config/source/ini/__init__.py +++ b/src/tox/config/source/ini/__init__.py @@ -104,7 +104,12 @@ class IniLoader(StrConvert, Loader): """Load from ini section""" def __init__( - self, section: Optional[SectionProxy], src: Ini, name: Optional[str], default_base: EnvList, section_loader, + self, + section: Optional[SectionProxy], + src: Ini, + name: Optional[str], + default_base: EnvList, + section_loader, ) -> None: super().__init__(name) self._section = section # type:Optional[SectionProxy] @@ -150,7 +155,9 @@ class IniLoader(StrConvert, Loader): def __repr__(self): return "{}(section={}, src={!r})".format( - type(self).__name__, self._section.name if self._section else self.name, self._src, + type(self).__name__, + self._section.name if self._section else self.name, + self._src, ) def _load_raw(self, key, conf, as_name=None): |