]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ruff: Default to python 3.7 version
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Thu, 10 Jul 2025 12:47:03 +0000 (14:47 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Jul 2025 16:09:17 +0000 (18:09 +0200)
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

index 6c0ec6ceb84bb067e895ea07a4afb8bb58a65bec..8ace55fb967a5daf57a3455df64f5bd94355235d 100644 (file)
--- 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"