Skip to content

Commit ac24f43

Browse files
committed
Update black code style
.. honestly, I prefer most of these changes anyways
1 parent 6d8c3a9 commit ac24f43

File tree

19 files changed

+14
-42
lines changed

19 files changed

+14
-42
lines changed

devtools/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from . import ci
99
from . import update_pyproject
1010

11-
1211
#
1312
# Environment variables for configuring the builds
1413
#

examples/ntcore/simple_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
import ntcore
1717

18-
1918
if __name__ == "__main__":
2019
logging.basicConfig(level=logging.DEBUG)
2120

examples/ntcore/simple_poller.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
import ntcore
1717

18-
1918
if __name__ == "__main__":
2019
logging.basicConfig(level=logging.DEBUG)
2120

examples/ntcore/simple_robot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import ntcore
1818

19-
2019
if __name__ == "__main__":
2120
logging.basicConfig(level=logging.DEBUG)
2221

examples/wpiutil/writelog.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from wpiutil.log import DataLog, BooleanLogEntry, StringArrayLogEntry, RawLogEntry
77

8-
98
if __name__ == "__main__":
109
parser = argparse.ArgumentParser()
1110
parser.add_argument("out", type=pathlib.Path)

subprojects/pyntcore/devtools/gen-pubsub.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
sphinxify.process_raw("\n".join(docs)).splitlines()
4444
)
4545

46-
print(
47-
f"""
46+
print(f"""
4847
// autogenerated by gen-pubsub.py
4948
.def(py::init([](
5049
{paramstr}
@@ -60,5 +59,4 @@
6059
)"
6160
)
6261
63-
"""
64-
)
62+
""")

subprojects/pyntcore/tests/test_util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from ntcore import NetworkTableInstance, NetworkTableType
44
from ntcore.util import ntproperty, ChooserControl
55

6-
76
# def test_autoupdatevalue(nt):
87

98
# # tricksy: make sure that this works *before* initialization

subprojects/robotpy-commands-v2/commands2/button/networkbutton.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ def init_str_table_field(table: str, field: str):
112112
if inst is not None and table is not None and field is not None:
113113
return init_inst_table_field(inst, table, field)
114114

115-
raise TypeError(
116-
f"""
115+
raise TypeError(f"""
117116
TypeError: NetworkButton(): incompatible function arguments. The following argument types are supported:
118117
1. (self: NetworkButton, topic: BooleanTopic)
119118
2. (self: NetworkButton, sub: BooleanSubscriber)
@@ -122,5 +121,4 @@ def init_str_table_field(table: str, field: str):
122121
5. (self: NetworkButton, inst: NetworkTableInstance, table: str, field: str)
123122
124123
Invoked with: {format_args_kwargs(self, *args, **kwargs)}
125-
"""
126-
)
124+
""")

subprojects/robotpy-commands-v2/commands2/button/trigger.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,14 @@ def init_condition(condition: Callable[[], bool]):
7373
if loop is not None and condition is not None:
7474
return init_loop_condition(loop, condition)
7575

76-
raise TypeError(
77-
f"""
76+
raise TypeError(f"""
7877
TypeError: Trigger(): incompatible function arguments. The following argument types are supported:
7978
1. (self: Trigger)
8079
2. (self: Trigger, condition: () -> bool)
8180
3. (self: Trigger, loop: EventLoop, condition: () -> bool)
8281
8382
Invoked with: {format_args_kwargs(self, *args, **kwargs)}
84-
"""
85-
)
83+
""")
8684

8785
def _add_binding(self, body: Callable[[bool, bool], None]) -> None:
8886
"""

subprojects/robotpy-commands-v2/commands2/proxycommand.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,13 @@ def init_command(command: Command):
7979
elif callable(args[0]):
8080
return init_supplier(args[0])
8181

82-
raise TypeError(
83-
f"""
82+
raise TypeError(f"""
8483
TypeError: ProxyCommand(): incompatible function arguments. The following argument types are supported:
8584
1. (self: ProxyCommand, supplier: () -> Command)
8685
2. (self: ProxyCommand, command: Command)
8786
8887
Invoked with: {format_args_kwargs(self, *args, **kwargs)}
89-
"""
90-
)
88+
""")
9189

9290
def initialize(self):
9391
self._command = self._supplier()

0 commit comments

Comments
 (0)