From cd6ac01542635db37b0a0d58cd10753cd1728724 Mon Sep 17 00:00:00 2001 From: bc1cindy Date: Thu, 12 Nov 2026 13:05:22 -0300 Subject: [PATCH] Lint for Python 3.10 The ruff in newer nixpkgs flags `timezone.utc` (UP017) and the `.replace("Z", "+00:00")` before `fromisoformat` (FURB162), so `treefmt-check` fails with that nixpkgs. The forms it suggests need Python 3.11, but the composite action runs the runner's `python3`, which is 3.10 on ubuntu-22.04. Setting the target version keeps the code working on 3.10 and records that minimum. --- ruff.toml | 1 + 1 file changed, 1 insertion(+) create mode 100644 ruff.toml diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000..fef8156 --- /dev/null +++ b/ruff.toml @@ -0,0 +1 @@ +target-version = "py310"