Skip to content

Commit

Permalink
Fix CI (#1774)
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <[email protected]>
  • Loading branch information
gaborbernat authored Jan 8, 2021
1 parent 6f5e2e9 commit 91e180d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
hooks:
- id: blacken-docs
additional_dependencies:
- black==19.10b0
- black==20.8b1
language_version: python3.8
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.0.2
Expand All @@ -55,7 +55,7 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear == 20.1.2
- flake8-bugbear == 20.11.1
language_version: python3.8
- repo: local
hooks:
Expand Down
3 changes: 2 additions & 1 deletion src/tox/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import toml
from packaging import requirements
from packaging.utils import canonicalize_name
from packaging.version import Version

import tox
from tox.constants import INFO
Expand Down Expand Up @@ -1297,7 +1298,7 @@ def handle_provision(self, config, reader):
requires_list = reader.getlist("requires")
config.minversion = reader.getstring("minversion", None)
config.provision_tox_env = name = reader.getstring("provision_tox_env", ".tox")
min_version = "tox >= {}".format(config.minversion or tox.__version__)
min_version = "tox >= {}".format(config.minversion or Version(tox.__version__).public)
deps = self.ensure_requires_satisfied(config, requires_list, min_version)
if config.run_provision:
section_name = "testenv:{}".format(name)
Expand Down

0 comments on commit 91e180d

Please sign in to comment.