Add ruff line length rule

This commit is contained in:
Paul Warren 2024-10-14 19:52:55 +11:00
parent faf2090fa1
commit f6f7a4ae29

View file

@ -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"]