Skip to content

Commit

Permalink
formatting: Run Python formatter at 3.8
Browse files Browse the repository at this point in the history
It looks like yapf formatter invoked with `scripts/formatting` uses
system Python 3 version which yields different results for Python 3.11
and Python 3.8. Buildkite seems to use Python 3.8, so this leads to
different behavior locally and remotely.

For now, I'm fixing the current lint warning that prevents submitting near#9157
but ideally we would fix this by either making sure formatting is the
same across versions or by fixing the Python version used in the
formatting script.
  • Loading branch information
aborg-dev committed Jun 13, 2023
1 parent f8a063c commit acd8f9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest/tests/sanity/recompress_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def do_test_recompress_storage(self, *, archive: bool) -> None:
time.sleep(5)
sanity.rpc_tx_status.test_tx_status(self.nodes, nonce_offset=3)

def _call(self, node: cluster.LocalNode, prefix: str,
*args: typing.Union[str, pathlib.Path]) -> None:
def _call(self, node: cluster.LocalNode, prefix: str, *args:
typing.Union[str, pathlib.Path]) -> None:
"""Calls node’s neard with given arguments."""
node_dir = pathlib.Path(node.node_dir)
cmd = [
Expand Down

0 comments on commit acd8f9e

Please sign in to comment.