Skip to content

Commit 539aef4

Browse files
authored
Ignore or fix most of the remaining ruff 0.9.6 errors (ipython#1331)
1 parent d11c032 commit 539aef4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ipykernel/datapub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class ZMQDataPublisher(Configurable):
3030
"""A zmq data publisher."""
3131

32-
topic = topic = CBytes(b"datapub")
32+
topic = CBytes(b"datapub")
3333
session = Instance(Session, allow_none=True)
3434
pub_socket = Any(allow_none=True)
3535
parent_header = Dict({})

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ ignore = [
277277
"PTH123",
278278
# use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
279279
"UP007",
280+
"UP031", # Use format specifiers instead of percent format
281+
"PT023", # Use `@pytest.mark.skip` over `@pytest.mark.skip()`
282+
"PT001", # autofixable: Use `@pytest.fixture` over `@pytest.fixture()`
280283
]
281284
unfixable = [
282285
# Don't touch print statements

0 commit comments

Comments
 (0)