From fec99b0fe83eb59233f6fc6253906ddba0f6f94e Mon Sep 17 00:00:00 2001 From: Paul Warren Date: Wed, 16 Oct 2024 18:40:10 +1100 Subject: [PATCH] Trying to get 501s ignored on generated registers --- pyproject.toml | 5 +++-- tests/test_regs.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 89a166f..103729f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,11 +31,12 @@ Issues = "https://git.pwarren.id.au/pwarren/PyFroniusReg/issues" [tool.ruff] -# Set the maximum line length to 79. line-length = 99 [tool.ruff.lint] # Add the `line-too-long` rule to the enforced rule set. By default, Ruff omits rules that # overlap with the use of a formatter, like Black, but we can override this behavior by # explicitly adding the rule. -extend-select = ["E501", "T20", "E", "PL"] +extend-select = ["T20", "E", "PL"] + + diff --git a/tests/test_regs.py b/tests/test_regs.py index 4f18b35..36973d4 100644 --- a/tests/test_regs.py +++ b/tests/test_regs.py @@ -11,7 +11,7 @@ fronius1.connect() class TestRead(unittest.TestCase): def test_read_scaled(self): - soc = gen24_registers.scaledStateOfCharge.get(fronius1) + soc = gen24_registers.scaledChaState.get(fronius1) assert isinstance(soc, float) def test_read_direct(self):