Skip to content

Commit

Permalink
Ruff: propogate config from OP (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewb1 authored Aug 14, 2023
1 parent 442963f commit 227c7ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion messaging/tests/test_messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)])
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
target-version="py311"
flake8-implicit-str-concat.allow-multiline=false

0 comments on commit 227c7ca

Please sign in to comment.