Skip to content

Commit

Permalink
pip_install: formatting fixup
Browse files Browse the repository at this point in the history
cr feedback
  • Loading branch information
masenf committed Jan 25, 2023
1 parent 8140bbc commit ed4bbc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tox/tox_env/python/pip/pip_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ def _install_requirement_file(self, arguments: PythonDeps, section: str, of_type
missing_requirement = set(old["requirements"]) - set(new_requirements)
if missing_requirement:
raise Recreate(f"requirements removed: {' '.join(missing_requirement)}")
if old.get("constraint_options") != constraint_options:
raise Recreate(
f"constraint options changed: old={old.get('constraint_options')} new={constraint_options}",
)
old_constraint_options = old.get("constraint_options")
if old_constraint_options != constraint_options:
msg = f"constraint options changed: old={old_constraint_options} new={constraint_options}"
raise Recreate(msg)
args = arguments.as_root_args
if args: # pragma: no branch
self._execute_installer(args, of_type)
Expand Down

0 comments on commit ed4bbc9

Please sign in to comment.