fix: resolve all pre-existing ruff lint errors
Fix E501 line-too-long in backlog.py, network.py, test_network.py. Fix F541 f-string-without-placeholders in network.py. Fix I001 unsorted imports in network.py. Remove unused datetime import in test_cert.py (F401). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -324,7 +324,8 @@ class TestHandleWelcome:
|
||||
writer.drain = AsyncMock()
|
||||
net._writer = writer
|
||||
|
||||
await net._handle(_msg(":server 001 coolguy :Welcome to the network coolguy!user@host.example.com"))
|
||||
welcome = ":server 001 coolguy :Welcome to the network coolguy!user@host.example.com"
|
||||
await net._handle(_msg(welcome))
|
||||
assert net.nick == "coolguy"
|
||||
assert net.state == State.PROBATION
|
||||
|
||||
@@ -337,7 +338,8 @@ class TestHandleWelcome:
|
||||
writer.drain = AsyncMock()
|
||||
net._writer = writer
|
||||
|
||||
await net._handle(_msg(":server 001 nick :Welcome to the IRC Network nick!user@visible.host.com"))
|
||||
welcome = ":server 001 nick :Welcome to the IRC Network nick!user@visible.host.com"
|
||||
await net._handle(_msg(welcome))
|
||||
assert net.visible_host == "visible.host.com"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user