- Change with_coverage default from False to True in run_pytest and run_all_tests
- Add --skip-cov argument to disable coverage
- Remove --coverage argument
- Update test expectations to match new default
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Add pytest-cov>=4.0.0 to dev dependencies so coverage is available when installing with [dev]
- This enables the --coverage flag in run_tests.py to work properly
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Add --coverage CLI argument
- Add with_coverage parameter to run_pytest and run_all_tests methods
- Add _parse_coverage_output method to extract percentage from pytest-cov output
- Add coverage_percent to TestRunner class
- Display coverage percentage in summary when --coverage is used
- Run pytest with --cov=src --cov-report=term when coverage is enabled
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Add TestTestRunnerInit class with 3 tests for __init__
- Add TestParsePytestOutput class with 5 tests for output parsing
- Add TestRunPytest class with 5 tests for pytest execution
- Add TestRunAllTests class with 2 tests for running all tests
- Add TestGetSummary class with 2 tests for summary generation
- Total: 17 new tests covering all TestRunner methods
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Always capture pytest output to parse test counts
- Parse pytest output to extract passed/failed counts using regex
- Track total_collected, total_passed, total_failed at class level
- Print pytest output when not in CI mode
- Now correctly shows 'Passed: 3/3' instead of 'Passed: 1/1'
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Update test_paths from ['librarian/tests', 'mdoctor/tests'] to ['src/tests']
- Tests were moved to src/tests/ during refactoring
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Move import pymarkdown and PyMarkdownLint from _run_pymarkdown_lint method to top-level imports
- Follows Python best practice of having all imports at the top of the file
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- librarian: Make directory argument optional with default '.'
- mdoctor: Default to 'list' subcommand with current directory when no args
- mdoctor: Add directory argument to list subcommand with default '.'
- chklint: Keep default '.' for directory argument
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Import pymarkdown and PyMarkdownLint directly
- Remove subprocess call to pymarkdownlnt CLI
- Use library's Python API with stdout/stderr redirection
- More portable as it doesn't rely on CLI entry points
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Remove markdownlint fallback check since pymarkdownlnt is now a runtime dependency
- Simplify _get_linter_command() to just use pymarkdownlnt scan directly
- Rename _parse_pymarkdownlnt_output to _parse_output
- Remove json and shutil imports that are no longer needed
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Add pymarkdownlnt>=0.9.0 to main dependencies so users don't need to install it manually
- This enables the mdoctor chklint command to work out of the box
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Add list_all_md_files() method to MDoctor class using Librarian.list_all_md_files()
- Add check_markdown_lint() method to run markdownlint/pymarkdownlnt on .md files
- Add chklint subcommand to mdoctor CLI with directory argument
- Update fiona/__main__.py to pass subcommands to mdoctor
- Add test_list_all_md_files() test in test_librarian.py
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Add src/README.md with project overview, installation, and usage
- Update src/librarian/README.md with actual usage examples
- Add src/mdoctor/README.md with tool description and usage
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>