Bump black to version 23
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 15 Mar 2023 19:45:28 +0000 (15:45 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 18 Sep 2023 15:30:56 +0000 (11:30 -0400)
Bump to the latest available black version.

Change-Id: I62360ab9137ab2a5eb7fcc4dbbed913bfacee2e1
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/9650
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
dev-requirements.txt
src/bindings/python/bt2/bt2/component.py
src/bindings/python/bt2/bt2/field.py
src/bindings/python/bt2/bt2/integer_range_set.py
src/bindings/python/bt2/bt2/object.py
src/bindings/python/bt2/bt2/trace_class.py
tests/bindings/python/bt2/test_event_class.py
tests/bindings/python/bt2/utils.py
tests/data/plugins/src.ctf.lttng-live/lttng_live_server.py

index 4331ffd09d7012ba7cd25402d4b60abd9378c560..f955fb6e0894628d8ac885795c66477bb1a9f537 100644 (file)
@@ -1,4 +1,4 @@
-black ~= 22.0
+black ~= 23.9.1
 flake8 >= 3.8
 # Required for black 22.0, it's broken with click >= 8.1
 click < 8.1
index 7669a60dee72227fb4e7c0dae1e20979410c4b6e..1bb6763e1e79b916ac262fb0d21fb3e6cc22c0e3 100644 (file)
@@ -122,7 +122,6 @@ class _PortIterator(collections.abc.Iterator):
 
 
 class _ComponentPorts(collections.abc.Mapping):
-
     # component_ptr is a bt_component_source *, bt_component_filter * or
     # bt_component_sink *.  Its type must match the type expected by the
     # functions passed as arguments.
index 40ce52c52adc7b47e0dd5e34f67ae525267508dc..06c8385efc63b5b0af64eec89b7d32717971f10b 100644 (file)
@@ -13,7 +13,6 @@ import math
 def _create_field_from_ptr_template(
     object_map, ptr, owner_ptr, owner_get_ref, owner_put_ref
 ):
-
     field_class_ptr = native_bt.field_borrow_class_const(ptr)
     typeid = native_bt.field_class_get_type(field_class_ptr)
     field = object_map[typeid]._create_from_ptr_and_get_ref(
index 6803131470c06c180436d255e4491e71eb3c14aa..44f2f380c803cfecfda267fb2ce0b5e00344a3c6 100644 (file)
@@ -91,7 +91,6 @@ class _IntegerRangeSetConst(object._SharedObject, collections.abc.Set):
             yield self._range_pycls(lower, upper)
 
     def __eq__(self, other):
-
         if not isinstance(other, _IntegerRangeSetConst):
             return False
 
index c1a23fdf353c8657503221834884f0ec675075e0..dcff667f49aaf52d1a889d29e06e8cfdcb187156 100644 (file)
@@ -45,7 +45,6 @@ class _BaseObject:
 
 
 class _UniqueObject(_BaseObject):
-
     # Create a _UniqueObject.
     #
     #   - ptr: SWIG Object, pointer to the unique object.
index 7fa8fa455be1046934545276b1163282157b43bb..c89e9d21dda0d4df5858fc322436388abfe212b2 100644 (file)
@@ -87,7 +87,6 @@ class _TraceClassConst(object._SharedObject, collections.abc.Mapping):
     # Add a listener to be called when the trace class is destroyed.
 
     def add_destruction_listener(self, listener):
-
         if not callable(listener):
             raise TypeError("'listener' parameter is not callable")
 
index ae6f098137c6c95ea4b4924459eef0546c1bc5a1..0e97c09eb1aa386a969447fad43e17cbdb292abc 100644 (file)
@@ -22,7 +22,6 @@ def _create_const_event_class(tc, stream_class):
 
     class MyIter(bt2._UserMessageIterator):
         def __init__(self, config, self_port_output):
-
             trace = tc()
             stream = trace.create_stream(stream_class)
             self._msgs = [
index 410bb78cdb743c8483efbf0a700c96c3a279bfd2..c59fd8d57d27d41c8b3aa41672f909c21132d35e 100644 (file)
@@ -53,7 +53,6 @@ def _get_all_message_types(with_packet=True):
 
     class MyIter(bt2._UserMessageIterator):
         def __init__(self, config, self_output_port):
-
             nonlocal _msgs
             self._at = 0
             self._msgs = [
index 8ef7e5fd91fb7dff2089c8ba38474406ee15f3a1..4e4a9b6d87ab42de899f8f58b3cc96a70c7f2b85 100644 (file)
@@ -901,7 +901,6 @@ def _split_metadata_sections(metadata_file_path, raw_config_sections):
         # If the next section begins at the current line, create a
         # section with the metadata we gathered so far.
         if curr_line_number >= next_section_line_number:
-
             # Flushing the metadata of the current section.
             sections.append(
                 _LttngMetadataStreamSection(
This page took 0.027962 seconds and 4 git commands to generate.