Set the `target-version` in `ruff.toml` to Python 3.12. Ensures the linter aligns with the version used in the project's environment. Fixes #21404
@@ -2,7 +2,7 @@ exclude = [
"netbox/project-static/**"
]
line-length = 120
-target-version = "py310"
+target-version = "py312"
[lint]
extend-select = ["E1", "E2", "E3", "E501", "W"]