From 88444243b80888b0d68879d9e9740249c292a0ae Mon Sep 17 00:00:00 2001 From: DaanDeMeyer Date: Thu, 10 Jul 2025 14:47:03 +0200 Subject: [PATCH] ruff: Default to python 3.7 version For some use cases we still want python 3.7 compat so let's default to that and only target python 3.9 in a few specific cases. --- ruff.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ruff.toml b/ruff.toml index 6c0ec6ceb84..8ace55fb967 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,6 +1,11 @@ -target-version = "py39" +target-version = "py37" line-length = 109 lint.select = ["E", "F", "I", "UP"] [format] quote-style = "single" + +[per-file-target-version] +"src/ukify/*.py" = "py39" +"test/**/integration-test-wrapper.py" = "py39" +"test/test-udev.py" = "py39"