Repository navigation
chore: fix pre-existing ruff lint and format errors - #10
Merged
Merged
Conversation
Silences three pre-existing ruff findings that have been red on main since ac16da8: - SIM105: use contextlib.suppress(Exception) for the ZoneInfo call - SIM108: collapse the now = datetime.now(...) if/else into a ternary - F401: drop unused timedelta import in test_analyze_tasks_with_timezone No functional change. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pure mechanical output of 'uv run ruff format'. Three files had dict literals passed to list.append(...) that ruff now wants split across lines. No functional change. This greens the 'ruff format --check' CI step, which has been failing on main alongside the check errors fixed in 595813b. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ljadach
added a commit
that referenced
this pull request
Apr 12, 2026
pyproject.toml declares readme = "README.md", so hatchling requires
the file to exist at build time for metadata validation. The build
stage was copying pyproject.toml and src/ but not README.md,
causing 'uv build --wheel' to fail with:
OSError: Readme file does not exist: README.md
This was masked for ~11 weeks because the docker CI job has
needs: [lint, test] and lint was failing since ac16da8 — the docker
step only started running once lint went green in #10.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Main CI has been red since 2026-01-25 (commit ac16da8) due to three ruff lint errors plus three files failing
ruff format --check. Nothing here is new — this PR just clears the accumulated backlog so CI goes green for the first time in ~11 weeks.Split into two commits for clarity:
595813b— manual lint fixes (2 files, 4+ 8-):try/except Exception: pass→contextlib.suppress(Exception)in_analyze_tasksif user_tz: now = datetime.now(user_tz) else: ...→ ternarytimedeltaimport intest_analyze_tasks_with_timezonee9e47b7—ruff formatoutput (3 files, 64+ 50-): pure mechanical reformatting ofdictliterals passed tolist.append(...).response_builder.py,tools/notes.py,tools/utilities.py. Zero logic change.Test plan
uv run ruff check src tests— passesuv run ruff format --check src tests— passesuv run pyright src— 0 errorsuv run pytest— 36/36 passing🤖 Generated with Claude Code