Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
build: update black from 21.12b0 to 22.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed Feb 1, 2022
1 parent a8099f4 commit 23c517d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: 21.11b1
rev: 22.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
Expand Down
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ disable=consider-using-f-string,
missing-module-docstring,
redefined-builtin,
redefined-outer-name,
redundant-u-string-prefix,
signature-differs,
super-with-arguments,
too-many-arguments,
Expand Down
2 changes: 1 addition & 1 deletion src/system/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def sumSquares(values):
The sum of all squares of the values parameter, or NaN if the
input was empty or null.
"""
return builtins.sum(value ** 2 for value in values)
return builtins.sum(value**2 for value in values)


def variance(values):
Expand Down
2 changes: 1 addition & 1 deletion src/system/secsgem.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def enableDisableEquipment(enable, names):
print(enable)
for name in names:
print(name)
return [u""]
return [unicode("")]


def getResponse(transactionID, equipment, timeout=5, poll=150):
Expand Down
8 changes: 4 additions & 4 deletions src/system/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def getClientId():
A special code representing the Client's Session in a unique
way.
"""
return u"F6D410AC"
return unicode("F6D410AC")


def getConnectTimeout():
Expand Down Expand Up @@ -252,7 +252,7 @@ def getGatewayAddress():
The address of the Gateway that the client is communicating
with.
"""
return u"http://localhost:8088/"
return unicode("http://localhost:8088/")


def getGatewayStatus(
Expand Down Expand Up @@ -288,7 +288,7 @@ def getGatewayStatus(
print(
gatewayAddress, connectTimeoutMillis, socketTimeoutMillis, bypassCertValidation
)
return u"RUNNING"
return unicode("RUNNING")


def getGlobals():
Expand Down Expand Up @@ -967,7 +967,7 @@ def threadDump():
Returns:
The dump of the current running JVM.
"""
return u"""{0}\n "version": "{1}"...{2}""".format(
return """{0}\n "version": "{1}"...{2}""".format(
"{", getVersion().toParseableString(), "}"
)

Expand Down

0 comments on commit 23c517d

Please sign in to comment.