Skip to content

Modernize COBOLEval codebase - #1

Merged
nitrotap merged 3 commits into
mainfrom
claude/modernize-coboleval-X6TYZ
Feb 10, 2026
Merged

nitrotap merged 3 commits into
mainfrom
claude/modernize-coboleval-X6TYZ

Conversation

@nitrotap

Copy link
Copy Markdown
Owner

Major improvements:

Python:

  • Fix critical bug in JsonComplete/JsonProgram list initialization
  • Replace deprecated joblib.cache with functools.lru_cache
  • Add pyproject.toml with pinned dependencies and modern packaging
  • Add proper CLI interfaces using fire for all scripts
  • Complete type hints across all modules
  • Fix bare except clauses with specific exception types
  • Add configurable timeout via COBOLEVAL_TIMEOUT env var
  • Convert to package structure with scripts/init.py

Rust:

  • Split main.rs into modules (types, parser, transpiler, constants)
  • Add clap CLI for argument parsing
  • Add proper logging with env_logger
  • Add unit tests for core functionality
  • Update Cargo.toml with metadata and new dependencies

Infrastructure:

  • Add GitHub Actions CI workflow (lint, test, build)
  • Add Dockerfile for containerized environment
  • Add pre-commit configuration (ruff, mypy, cargo fmt/clippy)
  • Add pytest test suite for Python code
  • Add .env.example with documented environment variables
  • Update .gitignore with additional patterns
  • Comprehensive README rewrite with new CLI usage docs

https://claude.ai/code/session_01NSKa9nvUs6rjy1NrUMJ4J7

Major improvements:

Python:
- Fix critical bug in JsonComplete/JsonProgram list initialization
- Replace deprecated joblib.cache with functools.lru_cache
- Add pyproject.toml with pinned dependencies and modern packaging
- Add proper CLI interfaces using fire for all scripts
- Complete type hints across all modules
- Fix bare except clauses with specific exception types
- Add configurable timeout via COBOLEVAL_TIMEOUT env var
- Convert to package structure with scripts/__init__.py

Rust:
- Split main.rs into modules (types, parser, transpiler, constants)
- Add clap CLI for argument parsing
- Add proper logging with env_logger
- Add unit tests for core functionality
- Update Cargo.toml with metadata and new dependencies

Infrastructure:
- Add GitHub Actions CI workflow (lint, test, build)
- Add Dockerfile for containerized environment
- Add pre-commit configuration (ruff, mypy, cargo fmt/clippy)
- Add pytest test suite for Python code
- Add .env.example with documented environment variables
- Update .gitignore with additional patterns
- Comprehensive README rewrite with new CLI usage docs

https://claude.ai/code/session_01NSKa9nvUs6rjy1NrUMJ4J7
- Add OllamaChat generator class
- Add run_ollama CLI command with --host option for remote Ollama servers
- Supports models like granite3.1-dense:8b, qwen2.5-coder, etc.

Usage: python -m scripts.generate ollama --model-name granite3.1-dense:8b

https://claude.ai/code/session_01NSKa9nvUs6rjy1NrUMJ4J7
- Remove unsupported -fformat=variable compiler flag
- Fix k parameter handling to accept both int and string
- Enable execution code for running evaluations

https://claude.ai/code/session_01NSKa9nvUs6rjy1NrUMJ4J7
@nitrotap
nitrotap merged commit 47a6e58 into main Feb 10, 2026
3 of 5 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.

2 participants