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: rnorth/mkdocs-codeinclude-plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ea54d28
Choose a base ref
...
head repository: rnorth/mkdocs-codeinclude-plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 289c5d7
Choose a head ref
  • 6 commits
  • 15 files changed
  • 5 contributors

Commits on Feb 20, 2026

  1. Add functionality to raise error if block or include_block is not…

    … found in file (#31)
    
    * Raise error when block not found
    
    * Don't use `better-setuptools-git-version`
    
    This is broken on Python 3.10 as `collections.Mapping` no longer exists.
    
    * Fix error message
    
    * Add filename to error message
    
    * Add config value to control whether or not `select()` throws for blocks which are not found
    
    * Add documentation for config values
    
    * Add tests for `block_throws`
    
    * Revert "Don't use `better-setuptools-git-version`"
    
    This reverts commit 147d84a.
    
    ---------
    
    Co-authored-by: Joshua Coffey <[email protected]>
    geel9 and Joshua Coffey authored Feb 20, 2026
    Configuration menu
    Copy the full SHA
    b85b8bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ae82b2 View commit details
    Browse the repository at this point in the history
  3. Fix stale expected value in test_modern_tab_case

    The test was written before PR #26 added 4-space indentation for
    pymdownx.tabbed content, so the expected output never matched actual
    plugin behaviour. Update comparison to use rstrip_lines() to normalise
    trailing whitespace on blank lines within code blocks.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
    rnorth and claude committed Feb 20, 2026
    Configuration menu
    Copy the full SHA
    fdcba98 View commit details
    Browse the repository at this point in the history
  4. Modernise build tooling: Python 3.11, setuptools-scm, mise

    - Replace better-setuptools-git-version (broken on Python 3.10+) with
      setuptools-scm
    - Bump python_requires to >=3.11 and update classifiers to match
    - Update CI workflows (python-package, python-publish) to Python 3.11
    - Switch from direnv (.envrc) to mise (.mise.toml) for local tooling
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
    rnorth and claude committed Feb 20, 2026
    Configuration menu
    Copy the full SHA
    3452ef2 View commit details
    Browse the repository at this point in the history
  5. Fix block_throw silently returning whole file when token matches with…

    …out braces
    
    When block_throw=True and the token appeared as a substring on a line
    without braces (e.g. block="foo" matching "call_foo();"), found_block
    was set but no lines were selected, causing the entire file to be
    returned instead of raising ValueError. Check selected_lines instead
    of found_block to catch this case.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    rnorth and claude committed Feb 20, 2026
    Configuration menu
    Copy the full SHA
    048fecb View commit details
    Browse the repository at this point in the history
  6. Modernise build tooling: switch to uv (#35)

    * Add .worktrees/ to .gitignore for git worktree support
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
    
    * Modernise build tooling: switch to uv for dependency management
    
    - Replace setup.py/setup.cfg/requirements.txt with pyproject.toml
    - Add uv to .mise.toml managed tools, remove manual venv config
    - Update CI workflow to use astral-sh/setup-uv and uv commands
    - Update publish workflow to use uv build/publish with OIDC trusted publishers
    - Add AGENTS.md with updated setup/test instructions
    - Add uv.lock to .gitignore (library, not application)
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
    
    * Replace flake8 with ruff; fix uv dev dependency group
    
    - Switch from [project.optional-dependencies] to [dependency-groups]
      so that `uv sync --dev` correctly installs dev dependencies
    - Replace flake8 with ruff in the CI workflow
    - Remove dead `found_block` variables in resolver.py caught by ruff
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Sonnet 4.6 <[email protected]>
    rnorth and claude authored Feb 20, 2026
    Configuration menu
    Copy the full SHA
    289c5d7 View commit details
    Browse the repository at this point in the history
Loading