Closes #21404: Set Ruff target Python version to 3.12 #378

Closed
opened 2026-04-05 16:28:21 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 2/12/2026

Fixes: #21404

This PR updates Ruff’s configuration to align with NetBox’s supported runtime by setting target-version to Python 3.12 in ruff.toml.

Since Python 3.12 is the project’s minimum supported version, this helps ensure Ruff validates the codebase using the same language features and syntax expectations as our actual environment.

*Originally created by @pheus on 2/12/2026* <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #21404 <!-- Please include a summary of the proposed changes below. --> This PR updates Ruff’s configuration to align with NetBox’s supported runtime by setting `target-version` to **Python 3.12** in `ruff.toml`. Since Python 3.12 is the project’s minimum supported version, this helps ensure Ruff validates the codebase using the same language features and syntax expectations as our actual environment.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#378