From 444e49aa5f1246706c882f1c64d086b373de1cc9 Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Mon, 14 Aug 2023 10:44:36 -0700 Subject: [PATCH] propogate ruff --- messaging/tests/test_messaging.py | 2 +- pyproject.toml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/messaging/tests/test_messaging.py b/messaging/tests/test_messaging.py index a9579cbcb..7f83a32bd 100755 --- a/messaging/tests/test_messaging.py +++ b/messaging/tests/test_messaging.py @@ -19,7 +19,7 @@ def random_sock(): return random.choice(events) def random_socks(num_socks=10): - return list(set([random_sock() for _ in range(num_socks)])) + return list({random_sock() for _ in range(num_socks)}) def random_bytes(length=1000): return bytes([random.randrange(0xFF) for _ in range(length)]) diff --git a/pyproject.toml b/pyproject.toml index d08c40614..bac2d7f08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ # https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml [tool.ruff] -select = ["E", "F", "W"] -ignore = ["W292", "E741"] +select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF100", "A"] +ignore = ["W292", "E741", "E402", "C408", "ISC003"] line-length = 160 -target-version="py311" \ No newline at end of file +target-version="py311" +flake8-implicit-str-concat.allow-multiline=false