Skip to content

April 2026 updates: Makefile, pre-commit config, and Zig 0.14 compatibility#78

Open
cmhac wants to merge 5 commits intowashingtonpost:developfrom
cmhac:april-2026-updates
Open

April 2026 updates: Makefile, pre-commit config, and Zig 0.14 compatibility#78
cmhac wants to merge 5 commits intowashingtonpost:developfrom
cmhac:april-2026-updates

Conversation

@cmhac
Copy link
Copy Markdown

@cmhac cmhac commented Apr 6, 2026

Summary

This PR includes updates to improve the development workflow and ensure compatibility with Zig 0.14.

Changes

Build System & Documentation

  • Add comprehensive Makefile with targets for building, testing, and verification
  • Add AGENTS.md with repository setup and workflow documentation

Zig 0.14 Compatibility

  • Update build.zig to work with Zig 0.14.1 API changes
    • Update function signatures to use std.Build.Step.Compile
    • Update addCSourceFiles API to use new struct syntax
    • Update target checking API for Darwin detection
    • Remove deprecated CrossTarget import

Code Quality

  • Update pre-commit hook versions to current stable releases
    • isort: 5.10.1 → 5.13.2
    • black: 21.9b0 → 24.10.0
    • pre-commit-hooks: v4.0.1 → v5.0.0
    • flake8: v2.3.0 → 7.1.1
  • Fix linting issues (unused imports, missing newlines)
  • Auto-format Python code with black and isort

Testing

All tests pass:

  • make all runs successfully (C tests, CLI smoke tests, Python tests)
  • pre-commit run --all-files passes
  • Python test coverage: 95%
  • Pylint score: 10.00/10

cmhac added 4 commits April 6, 2026 13:33
- Update pre-commit hook versions to current stable releases
  - isort: 5.10.1 → 5.13.2
  - black: 21.9b0 → 24.10.0
  - pre-commit-hooks: v4.0.1 → v5.0.0
  - flake8: v2.3.0 → 7.1.1
- Fix linting issues:
  - Remove unused imports (pytest, time)
  - Add missing final newlines
  - Auto-format code with black and isort
- Update function signatures to use std.Build.Step.Compile
- Update addCSourceFiles API to use new struct syntax
- Update target checking API for Darwin detection
- Remove deprecated CrossTarget import
@cmhac cmhac requested a review from a team as a code owner April 6, 2026 18:00
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