Fix black formatting
This commit is contained in:
2
Pipfile
2
Pipfile
@@ -6,6 +6,8 @@ verify_ssl = true
|
|||||||
[packages]
|
[packages]
|
||||||
Cython = "*"
|
Cython = "*"
|
||||||
Jinja2 = "*"
|
Jinja2 = "*"
|
||||||
|
black = "*"
|
||||||
|
flake8 = "*"
|
||||||
pkgconfig = "*"
|
pkgconfig = "*"
|
||||||
pytest = "*"
|
pytest = "*"
|
||||||
sphinx = "*"
|
sphinx = "*"
|
||||||
|
|||||||
@@ -109,7 +109,6 @@ def evaluate_impl(expression, params=None):
|
|||||||
|
|
||||||
|
|
||||||
class ValueImpl(calculator_capnp.Calculator.Value.Server):
|
class ValueImpl(calculator_capnp.Calculator.Value.Server):
|
||||||
|
|
||||||
"Simple implementation of the Calculator.Value Cap'n Proto interface."
|
"Simple implementation of the Calculator.Value Cap'n Proto interface."
|
||||||
|
|
||||||
def __init__(self, value):
|
def __init__(self, value):
|
||||||
@@ -167,7 +166,6 @@ class OperatorImpl(calculator_capnp.Calculator.Function.Server):
|
|||||||
|
|
||||||
|
|
||||||
class CalculatorImpl(calculator_capnp.Calculator.Server):
|
class CalculatorImpl(calculator_capnp.Calculator.Server):
|
||||||
|
|
||||||
"Implementation of the Calculator Cap'n Proto interface."
|
"Implementation of the Calculator Cap'n Proto interface."
|
||||||
|
|
||||||
def evaluate(self, expression, _context, **kwargs):
|
def evaluate(self, expression, _context, **kwargs):
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ logger.setLevel(logging.DEBUG)
|
|||||||
|
|
||||||
|
|
||||||
class ExampleImpl(thread_capnp.Example.Server):
|
class ExampleImpl(thread_capnp.Example.Server):
|
||||||
|
|
||||||
"Implementation of the Example threading Cap'n Proto interface."
|
"Implementation of the Example threading Cap'n Proto interface."
|
||||||
|
|
||||||
def subscribeStatus(self, subscriber, **kwargs):
|
def subscribeStatus(self, subscriber, **kwargs):
|
||||||
|
|||||||
@@ -113,7 +113,6 @@ def evaluate_impl(expression, params=None):
|
|||||||
|
|
||||||
|
|
||||||
class ValueImpl(calculator_capnp.Calculator.Value.Server):
|
class ValueImpl(calculator_capnp.Calculator.Value.Server):
|
||||||
|
|
||||||
"Simple implementation of the Calculator.Value Cap'n Proto interface."
|
"Simple implementation of the Calculator.Value Cap'n Proto interface."
|
||||||
|
|
||||||
def __init__(self, value):
|
def __init__(self, value):
|
||||||
@@ -171,7 +170,6 @@ class OperatorImpl(calculator_capnp.Calculator.Function.Server):
|
|||||||
|
|
||||||
|
|
||||||
class CalculatorImpl(calculator_capnp.Calculator.Server):
|
class CalculatorImpl(calculator_capnp.Calculator.Server):
|
||||||
|
|
||||||
"Implementation of the Calculator Cap'n Proto interface."
|
"Implementation of the Calculator Cap'n Proto interface."
|
||||||
|
|
||||||
def evaluate(self, expression, _context, **kwargs):
|
def evaluate(self, expression, _context, **kwargs):
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
|
|||||||
|
|
||||||
|
|
||||||
class ExampleImpl(thread_capnp.Example.Server):
|
class ExampleImpl(thread_capnp.Example.Server):
|
||||||
|
|
||||||
"Implementation of the Example threading Cap'n Proto interface."
|
"Implementation of the Example threading Cap'n Proto interface."
|
||||||
|
|
||||||
def subscribeStatus(self, subscriber, **kwargs):
|
def subscribeStatus(self, subscriber, **kwargs):
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ def evaluate_impl(expression, params=None):
|
|||||||
|
|
||||||
|
|
||||||
class ValueImpl(calculator_capnp.Calculator.Value.Server):
|
class ValueImpl(calculator_capnp.Calculator.Value.Server):
|
||||||
|
|
||||||
"Simple implementation of the Calculator.Value Cap'n Proto interface."
|
"Simple implementation of the Calculator.Value Cap'n Proto interface."
|
||||||
|
|
||||||
def __init__(self, value):
|
def __init__(self, value):
|
||||||
@@ -107,7 +106,6 @@ class OperatorImpl(calculator_capnp.Calculator.Function.Server):
|
|||||||
|
|
||||||
|
|
||||||
class CalculatorImpl(calculator_capnp.Calculator.Server):
|
class CalculatorImpl(calculator_capnp.Calculator.Server):
|
||||||
|
|
||||||
"Implementation of the Calculator Cap'n Proto interface."
|
"Implementation of the Calculator Cap'n Proto interface."
|
||||||
|
|
||||||
def evaluate(self, expression, _context, **kwargs):
|
def evaluate(self, expression, _context, **kwargs):
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import thread_capnp
|
|||||||
|
|
||||||
|
|
||||||
class ExampleImpl(thread_capnp.Example.Server):
|
class ExampleImpl(thread_capnp.Example.Server):
|
||||||
|
|
||||||
"Implementation of the Example threading Cap'n Proto interface."
|
"Implementation of the Example threading Cap'n Proto interface."
|
||||||
|
|
||||||
def subscribeStatus(self, subscriber, **kwargs):
|
def subscribeStatus(self, subscriber, **kwargs):
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
jinja2
|
jinja2
|
||||||
|
black
|
||||||
cython
|
cython
|
||||||
|
flake8
|
||||||
setuptools
|
setuptools
|
||||||
pkgconfig
|
pkgconfig
|
||||||
pytest
|
pytest
|
||||||
|
|||||||
@@ -379,7 +379,7 @@ def assert_almost(float1, float2):
|
|||||||
|
|
||||||
def check_list(reader, expected):
|
def check_list(reader, expected):
|
||||||
assert len(reader) == len(expected)
|
assert len(reader) == len(expected)
|
||||||
for (i, v) in enumerate(expected):
|
for i, v in enumerate(expected):
|
||||||
if type(v) is float:
|
if type(v) is float:
|
||||||
assert_almost(reader[i], v)
|
assert_almost(reader[i], v)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user