Loading doc/docstring.py +1 −1 Original line number Diff line number Diff line Loading @@ -212,7 +212,7 @@ def dot_import_first(module: ModuleType, cls: type|None, name: str) -> tuple[obj if cls is None: raise return ( (cls, module, f"{module.__name__}.{cls.__name__}") if name == "self" else \ (cls, module, f"{module.__name__}.{cls.__name__}") if name == "self" else (getattr(cls, name), cls, f"{module.__name__}.{cls.__name__}.{name}") ) Loading pyproject.toml +3 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,9 @@ ignore_init = true [tool.flakeheaven] base = "https://code.kodo.org.uk/dom/project-templates/-/raw/main/.flakerules.toml" [tool.flakeheaven.exceptions."kilter/protocol/core.py"] pycodestyle = ["-E241"] [tool.flakeheaven.exceptions."kilter/protocol/messages.py"] flake8-docstrings = ["-D102"] Loading tests/test_core_filter_protocol.py +2 −2 Original line number Diff line number Diff line Loading @@ -501,7 +501,7 @@ class FilterProtocolTests(unittest.TestCase): ProtocolFlags.SKIP|ProtocolFlags.NR_CONNECT|ProtocolFlags.NR_HELO, ) assert protocol.skip == True assert protocol.skip is True assert AddHeader.ident in protocol.actions assert ChangeHeader.ident in protocol.actions assert InsertHeader.ident in protocol.actions Loading @@ -513,7 +513,7 @@ class FilterProtocolTests(unittest.TestCase): """ protocol = negotiated_protocol(ActionFlags.NONE, ProtocolFlags.NONE) assert protocol.skip == False assert protocol.skip is False assert len(protocol.nr) == 0 def test_needs_response(self) -> None: Loading Loading
doc/docstring.py +1 −1 Original line number Diff line number Diff line Loading @@ -212,7 +212,7 @@ def dot_import_first(module: ModuleType, cls: type|None, name: str) -> tuple[obj if cls is None: raise return ( (cls, module, f"{module.__name__}.{cls.__name__}") if name == "self" else \ (cls, module, f"{module.__name__}.{cls.__name__}") if name == "self" else (getattr(cls, name), cls, f"{module.__name__}.{cls.__name__}.{name}") ) Loading
pyproject.toml +3 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,9 @@ ignore_init = true [tool.flakeheaven] base = "https://code.kodo.org.uk/dom/project-templates/-/raw/main/.flakerules.toml" [tool.flakeheaven.exceptions."kilter/protocol/core.py"] pycodestyle = ["-E241"] [tool.flakeheaven.exceptions."kilter/protocol/messages.py"] flake8-docstrings = ["-D102"] Loading
tests/test_core_filter_protocol.py +2 −2 Original line number Diff line number Diff line Loading @@ -501,7 +501,7 @@ class FilterProtocolTests(unittest.TestCase): ProtocolFlags.SKIP|ProtocolFlags.NR_CONNECT|ProtocolFlags.NR_HELO, ) assert protocol.skip == True assert protocol.skip is True assert AddHeader.ident in protocol.actions assert ChangeHeader.ident in protocol.actions assert InsertHeader.ident in protocol.actions Loading @@ -513,7 +513,7 @@ class FilterProtocolTests(unittest.TestCase): """ protocol = negotiated_protocol(ActionFlags.NONE, ProtocolFlags.NONE) assert protocol.skip == False assert protocol.skip is False assert len(protocol.nr) == 0 def test_needs_response(self) -> None: Loading