Skip to content

Commit

Permalink
ignore fstring suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
whoburg committed Jan 5, 2024
1 parent 6f60ba8 commit 9856c89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions gpkit/constraints/loose.py
Expand Up @@ -23,6 +23,7 @@ def process_result(self, result):
for constraint in self.flat():
c_senss = result["sensitivities"]["constraints"].get(constraint, 0)
if c_senss >= self.senstol:
# pylint: disable=consider-using-f-string
cstr = ("Constraint [ %.100s... %s %.100s... )"
% (constraint.left, constraint.oper, constraint.right))
msg = ("%s is not loose: it has a sensitivity of %+.4g."
Expand Down
1 change: 1 addition & 0 deletions gpkit/constraints/relax.py
Expand Up @@ -4,6 +4,7 @@
from ..keydict import KeyDict
from .. import NamedVariables, SignomialsEnabled
from ..small_scripts import appendsolwarning, initsolwarning, mag
# pylint: disable=consider-using-f-string


class ConstraintsRelaxedEqually(ConstraintSet):
Expand Down
1 change: 1 addition & 0 deletions gpkit/constraints/tight.py
Expand Up @@ -25,6 +25,7 @@ def process_result(self, result):
rightval = constraint.right.sub(variables).value
rel_diff = mag(abs(1 - leftval/rightval))
if rel_diff >= self.reltol:
# pylint: disable=consider-using-f-string
msg = ("Constraint [%.100s... %s %.100s...] is not tight:"
" the left hand side evaluated to %s but"
" the right hand side evaluated to %s"
Expand Down

0 comments on commit 9856c89

Please sign in to comment.