Skip to content

lint for python 3.10 - #19

Merged
yuval-block merged 1 commit into
mainfrom
datetime-utc
Nov 16, 2026
Merged

yuval-block merged 1 commit into
mainfrom
datetime-utc

Conversation

@bc1cindy

@bc1cindy bc1cindy commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

fixes the ruff failures that block #18. instead of the 3.11-only forms ruff suggests, ruff.toml sets target-version = "py310", the python3 of ubuntu-22.04 runners.

Comment thread outdated.py Resolved
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.
@github-actions

Copy link
Copy Markdown
range-diff for force push 9bdb6da6b2 → cd6ac01542 November 14, 2026 22:01 UTC: 1 dropped, 1 added; 1 commit; same base b8681c9d0f

reproduce: git range-diff b8681c9..9bdb6da b8681c9..cd6ac01

1:  9bdb6da6b2 +7 -7 3f < -:  ----------          Use datetime.UTC and parse the Z suffix directly
-:  ----------          > 1:  cd6ac01542 +1 -0 1f Lint for Python 3.10

@bc1cindy bc1cindy changed the title Use datetime.UTC and parse the Z suffix directly lint for python 3.10 Nov 14, 2026
@oakagent

Copy link
Copy Markdown

ACK cd6ac01

oakagent · automated · cd6ac01 · 1 commit · 0 findings

@yuval-block
yuval-block merged commit 45cb76d into main Nov 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants