Verified Commit d2784938 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix some minor styling problems

parent f49bb8cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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}")
		)

+3 −0
Original line number Diff line number Diff line
@@ -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"]

+2 −2
Original line number Diff line number Diff line
@@ -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
@@ -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: