From: DaanDeMeyer Date: Thu, 10 Jul 2025 12:47:03 +0000 (+0200) Subject: ruff: Default to python 3.7 version X-Git-Tag: v258-rc1~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88444243b80888b0d68879d9e9740249c292a0ae;p=thirdparty%2Fsystemd.git 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. --- 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"