From f6f7a4ae294db005b66e92dd7c86586223dcdc6b Mon Sep 17 00:00:00 2001 From: Paul Warren Date: Mon, 14 Oct 2024 19:52:55 +1100 Subject: [PATCH] Add ruff line length rule --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e65998f..1e2224f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,3 +29,13 @@ dependencies = [ Homepage = "https://git.pwarren.id.au/pwarren/PyFroniusReg/" Issues = "https://git.pwarren.id.au/pwarren/PyFroniusReg/issues" + +[tool.ruff] +# Set the maximum line length to 79. +line-length = 79 + +[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"]