Skip to content

Add tests, format with black and fix type issues#10

Merged
nonprofittechy merged 8 commits intomainfrom
add-tests
Feb 26, 2026
Merged

Add tests, format with black and fix type issues#10
nonprofittechy merged 8 commits intomainfrom
add-tests

Conversation

@nonprofittechy
Copy link
Copy Markdown
Member

@nonprofittechy nonprofittechy commented Feb 26, 2026

No description provided.

@nonprofittechy nonprofittechy changed the title Add tests Add tests, format with black and fix type issues Feb 26, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive test coverage and improves type annotations across the codebase. The changes align with a move toward better type safety using mypy and modernized testing practices.

Changes:

  • Added type annotations to multiple modules (generate_mcp_config.py, code_formatter.py, yaml_structure.py)
  • Added new test files for CLI functionality (_collect_yaml_files function)
  • Refactored _collect_yaml_files to be shared between yaml_structure and code_formatter modules
  • Simplified CI workflow to use ALActions
  • Added requirements.txt with project dependencies including mypy

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/generate_mcp_config.py Added type annotations for packaged_main variable and main function return type
tests/test_yaml_structure_cli.py New test file for _collect_yaml_files function in yaml_structure module
tests/test_code_formatter_cli.py New test file for _collect_yaml_files function in code_formatter module
tests/test_code_formatter.py Updated quote style in name check to match codebase convention
src/dayamlchecker/yaml_structure.py Removed duplicate _collect_yaml_files implementation, now delegates to code_formatter; added type annotations; added type: ignore comments for untyped imports
src/dayamlchecker/mcp/server.py Added type: ignore comment for untyped mcp import
src/dayamlchecker/generate_mcp_config.py Added comprehensive type annotations and JSON validation for args parameter
src/dayamlchecker/code_formatter.py Added type annotations; refactored to use CommentedMap/CommentedSeq instead of generic dict/list; improved formatting consistency
requirements.txt New file listing project dependencies including mypy
.github/workflows/ci-checker.yml Simplified workflow to use ALActions/pythontests action

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nonprofittechy nonprofittechy mentioned this pull request Feb 26, 2026
@nonprofittechy nonprofittechy merged commit cf6b795 into main Feb 26, 2026
4 checks passed
@nonprofittechy nonprofittechy deleted the add-tests branch February 26, 2026 18:51
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