all: Format with black.

Also activate auto formatting. Bump flake8 and mark black
disagreements in setup.cfg.
This commit is contained in:
Laurens Valk
2022-05-27 16:22:05 +02:00
parent 24f7d7c288
commit bd7806d2d4
60 changed files with 716 additions and 709 deletions
+1 -4
View File
@@ -71,9 +71,7 @@ class DCMotor:
"""Generic class to control simple motors without rotation sensors, such
as train motors."""
def __init__(
self, port: Port, positive_direction: Direction = Direction.CLOCKWISE
):
def __init__(self, port: Port, positive_direction: Direction = Direction.CLOCKWISE):
"""DCMotor(port, positive_direction=Direction.CLOCKWISE)
Arguments:
@@ -905,7 +903,6 @@ class Accelerometer(SimpleAccelerometer):
class IMU(Accelerometer):
def heading(self):
"""Gets the heading angle relative to the starting orientation. It is a
a positive rotation around the :ref:`z-axis in the robot