From 3adcdc34c372cd422d45e8083eb78a68ffe2513e Mon Sep 17 00:00:00 2001 From: Kartik Date: Wed, 25 Feb 2026 23:40:39 +0530 Subject: [PATCH] clarify E501 enforcement --- docs/development/style-guide.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/development/style-guide.md b/docs/development/style-guide.md index fcd222a65..9cea4d5c8 100644 --- a/docs/development/style-guide.md +++ b/docs/development/style-guide.md @@ -34,7 +34,8 @@ The following rules are ignored when linting. ##### [E501](https://docs.astral.sh/ruff/rules/line-too-long/): Line too long -NetBox does not enforce a hard restriction on line length, although a maximum length of 120 characters is strongly encouraged for Python code where possible. The maximum length does not apply to HTML templates or to automatically generated code (e.g. database migrations). +NetBox enforces a maximum line length of 120 characters for Python code using Ruff (E501). +The maximum length does not apply to HTML templates or to automatically generated code (e.g. database migrations). ##### [F403](https://docs.astral.sh/ruff/rules/undefined-local-with-import-star/): Undefined local with import star