Skip to content

Modernize development environment with Nix Flakes#860

Open
Aurelian-Shuttleworth wants to merge 2 commits intoinsanum:mainfrom
Aurelian-Shuttleworth:feature/nix-infrastructure
Open

Modernize development environment with Nix Flakes#860
Aurelian-Shuttleworth wants to merge 2 commits intoinsanum:mainfrom
Aurelian-Shuttleworth:feature/nix-infrastructure

Conversation

@Aurelian-Shuttleworth
Copy link
Copy Markdown

@Aurelian-Shuttleworth Aurelian-Shuttleworth commented Jan 25, 2026

What was done

  • Introduced Nix Flakes (flake.nix) and .envrc to provide a fully reproducible, hermetic development environment.
  • Pinned all Python dependencies (including babel, truststore) via flake.lock.
  • Updated tests/conftest.py to use dynamic dates (datetime.now()) to fix test rot.

Why

  • Reproducibility: Eliminates "works on my machine" issues.
  • Reliability: Ensures pytest runs in an identical environment locally and in CI.

Verification Steps

Automated Tests

Ran the full legacy test suite in the new hermetic environment:

$ nix develop --command pytest
tests/test_auth.py .                                                     [ 14%]
tests/test_conflicts.py ...                                              [ 19%]
tests/test_gcalcli.py ............................                       [ 63%]
tests/test_input_validation.py .......                                   [ 74%]
tests/test_printer.py ..........                                         [ 90%]
tests/test_utils.py ......                                               [100%]
======================== 63 passed, 1 warning in 1.25s =========================

@kody-ai
Copy link
Copy Markdown

kody-ai bot commented Jan 25, 2026

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Automatic Review: Kody reviews this PR automatically on every push.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Cross File

Access your configuration settings here.

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.

1 participant