diff --git a/pyproject.toml b/pyproject.toml index bf52a012..c7c139d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,7 @@ ignore = [ "FIX", # Line contains TODO / XXX / ..., consider resolving the issue "FURB101", # `open` and `read` should be replaced by `Path(x).read_text()` "FURB103", # `open` and `write` should be replaced by `Path(...).write_bytes(data)` + "FURB113", # Use `x.extend(("foo", "bar"))` instead of repeatedly calling `x.append()` "INP", # `docs/conf.py` is part of an implicit namespace package. Add an `__init__.py`. "N801", # Class name `async_chat` should use CapWords convention (ASYNCORE COMPAT) "N802", # Function name X should be lowercase. diff --git a/setup.py b/setup.py index 3c234ecd..d42f5989 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,10 @@ "pytest-xdist", "setuptools", ] +if sys.version_info[:2] >= (3, 12): + TEST_DEPS.append("pyasyncore") + TEST_DEPS.append("pyasynchat") + if WINDOWS: TEST_DEPS.append("pywin32")