Skip to content

v2.1.0: complexity check, pathlib, pytest, typing - #109

Merged
lyubolp merged 6 commits into
mainfrom
v2.1.0
Nov 8, 2026
Merged

lyubolp merged 6 commits into
mainfrom
v2.1.0

Conversation

@lyubolp

@lyubolp lyubolp commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements the "vibes 1" milestone.

  • Complexity check (Measure code complexity #78) - new non-scored complexity check that runs complexipy as a library on the source files (tests excluded). It passes when no function is above max_complexity (default 15) and lists the offending functions otherwise. A file complexipy cannot parse fails the check without hiding the other files. max_complexity must be a positive integer. complexipy moved to the runtime dependencies.
  • Typing (mypy type stubs #75) - ship a grader/py.typed marker (and list it in the package data) so library users get the type information. The global ignore_missing_imports is gone from mypy.ini and the justfile; only cove_sdk.* is ignored, until py-cove ships its own py.typed.
  • pathlib (Migrate to pathlib #65) - os.path usage replaced with pathlib in grader/, desktop/ and the tests. Public method signatures still take str; path constants are now Path.
  • pytest (Migrate to pytest #101) - the whole suite is converted to plain assert, pytest.raises, tmp_path and a log_output fixture (in tests/conftest.py) in place of assertLogs. unittest.mock is kept. justfile, coverage and CLAUDE.md now use pytest.
  • Auto-tagging (Auto-tagging when pushed to main #56) - already implemented by the tag-release job in cicd.yml, so there is no code change here and the issue can be closed.
  • Version bumped to 2.1.0 with a CHANGELOG entry.

Closes #78, #75, #65, #101, #56

Behaviour notes

  • find_all_files_under_directory now uses Path.rglob instead of os.walk.
  • SpecCheck no longer crashes on a symlinked source file that resolves outside the project root (found in review).
  • A URL ending in / now yields its last path segment as the temp filename instead of downloaded_file.

Test plan

  • just lint (ruff, mypy, complexipy)
  • just unit_tests - 268 passed; just coverage - 93%
  • just functional_tests - these clone the remote and check out the current branch, so they only work once the branch is pushed; they are running now and CI will run them too

🤖 Generated with Claude Code

lyubolp and others added 6 commits November 7, 2026 16:39
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…heck

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…er factory tests, fix functional test setup

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@lyubolp
lyubolp merged commit ce08b7d into main Nov 8, 2026
3 checks passed
@lyubolp
lyubolp deleted the v2.1.0 branch November 16, 2026 20:26
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.

Measure code complexity

1 participant