Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apathetic-tools/zipbundler
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.0
Choose a base ref
...
head repository: apathetic-tools/zipbundler
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.1
Choose a head ref
  • 2 commits
  • 5 files changed
  • 2 contributors

Commits on Dec 14, 2025

  1. fix(config): fix pyproject.toml discovery to skip invalid files

    Refactor find_config() to return (Path, dict) tuple and load configs
    during discovery phase instead of later. This allows pyproject.toml files
    without [tool.zipbundler] section to be skipped, enabling search to
    continue up the directory tree to find valid config files.
    
    Key changes:
    - find_config() now returns tuple[Path, dict[str, Any]] | None
    - Extract discovery logic into _search_default_configs() helper
    - Load and validate all candidate files during discovery
    - Skip files that fail to load with TRACE-level logging
    - update load_and_validate_config() to handle tuple return
    - Skip load_config() call in load_and_validate_config()
    - Update test_find_config_exported() to verify tuple return
    - Add comprehensive test coverage (7 new test cases):
      - Skip pyproject.toml without [tool.zipbundler] section
      - Use pyproject.toml with [tool.zipbundler] section
      - Prefer valid .jsonc over invalid pyproject.toml
      - Error on explicit pyproject.toml without section
      - Search past multiple invalid pyproject.toml files
      - Prefer local valid pyproject.toml over parent config
      - Skip malformed/corrupted pyproject.toml files
    
    This fixes the bug where pyproject.toml without [tool.zipbundler] would
    stop the config search, preventing monorepos with multiple pyproject.toml
    files from working correctly.
    InertSloth committed Dec 14, 2025
    Configuration menu
    Copy the full SHA
    83bb3a6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ea2702 View commit details
    Browse the repository at this point in the history
Loading