Fix black formatting

This commit is contained in:
Jacob Alexander 2023-03-12 11:33:41 -07:00
parent d62ba169c9
commit 5061cdd1ee
9 changed files with 5 additions and 10 deletions

View file

@ -6,6 +6,8 @@ verify_ssl = true
[packages]
Cython = "*"
Jinja2 = "*"
black = "*"
flake8 = "*"
pkgconfig = "*"
pytest = "*"
sphinx = "*"

View file

@ -109,7 +109,6 @@ def evaluate_impl(expression, params=None):
class ValueImpl(calculator_capnp.Calculator.Value.Server):
"Simple implementation of the Calculator.Value Cap'n Proto interface."
def __init__(self, value):
@ -167,7 +166,6 @@ class OperatorImpl(calculator_capnp.Calculator.Function.Server):
class CalculatorImpl(calculator_capnp.Calculator.Server):
"Implementation of the Calculator Cap'n Proto interface."
def evaluate(self, expression, _context, **kwargs):

View file

@ -14,7 +14,6 @@ logger.setLevel(logging.DEBUG)
class ExampleImpl(thread_capnp.Example.Server):
"Implementation of the Example threading Cap'n Proto interface."
def subscribeStatus(self, subscriber, **kwargs):

View file

@ -113,7 +113,6 @@ def evaluate_impl(expression, params=None):
class ValueImpl(calculator_capnp.Calculator.Value.Server):
"Simple implementation of the Calculator.Value Cap'n Proto interface."
def __init__(self, value):
@ -171,7 +170,6 @@ class OperatorImpl(calculator_capnp.Calculator.Function.Server):
class CalculatorImpl(calculator_capnp.Calculator.Server):
"Implementation of the Calculator Cap'n Proto interface."
def evaluate(self, expression, _context, **kwargs):

View file

@ -18,7 +18,6 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
class ExampleImpl(thread_capnp.Example.Server):
"Implementation of the Example threading Cap'n Proto interface."
def subscribeStatus(self, subscriber, **kwargs):

View file

@ -49,7 +49,6 @@ def evaluate_impl(expression, params=None):
class ValueImpl(calculator_capnp.Calculator.Value.Server):
"Simple implementation of the Calculator.Value Cap'n Proto interface."
def __init__(self, value):
@ -107,7 +106,6 @@ class OperatorImpl(calculator_capnp.Calculator.Function.Server):
class CalculatorImpl(calculator_capnp.Calculator.Server):
"Implementation of the Calculator Cap'n Proto interface."
def evaluate(self, expression, _context, **kwargs):

View file

@ -8,7 +8,6 @@ import thread_capnp
class ExampleImpl(thread_capnp.Example.Server):
"Implementation of the Example threading Cap'n Proto interface."
def subscribeStatus(self, subscriber, **kwargs):

View file

@ -1,5 +1,7 @@
jinja2
black
cython
flake8
setuptools
pkgconfig
pytest

View file

@ -379,7 +379,7 @@ def assert_almost(float1, float2):
def check_list(reader, expected):
assert len(reader) == len(expected)
for (i, v) in enumerate(expected):
for i, v in enumerate(expected):
if type(v) is float:
assert_almost(reader[i], v)
else: