Skip to content

Commit 8cde51d

Browse files
Carreauianthomas23
authored andcommitted
Ignore or fix most of the remaining ruff 0.9.6 errors (ipython#1331)
1 parent 148afd6 commit 8cde51d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@ ignore = [
273273
"G002",
274274
# `open()` should be replaced by `Path.open()`
275275
"PTH123",
276+
# use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
277+
"UP007",
278+
"UP031", # Use format specifiers instead of percent format
279+
"PT023", # Use `@pytest.mark.skip` over `@pytest.mark.skip()`
280+
"PT001", # autofixable: Use `@pytest.fixture` over `@pytest.fixture()`
276281
]
277282
unfixable = [
278283
# Don't touch print statements

0 commit comments

Comments
 (0)