Skip to content

Version 2.0.0#114

Merged
cdgriffith merged 14 commits intomasterfrom
develop
Feb 20, 2026
Merged

Version 2.0.0#114
cdgriffith merged 14 commits intomasterfrom
develop

Conversation

@cdgriffith
Copy link
Owner

@cdgriffith cdgriffith commented Jul 5, 2025

Copilot AI review requested due to automatic review settings December 18, 2025 11:57
Copy link

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 support for sndhdr audio file tests and enhances text type detection with dynamic checks for version 2.0.0b5. The changes include significant refactoring of internal functions from private (underscore-prefixed) to public names, new scanner implementations, and improved test coverage.

Key Changes:

  • Added new sndhdr_scanner for audio file detection
  • Enhanced text scanner with CSV detection and format-specific checks
  • Improved Python scanner with better code pattern recognition
  • Added JSON array support to json_scanner
  • Refactored internal functions to use public naming
  • Added new test cases for audio formats and dynamic text types

Reviewed changes

Copilot reviewed 13 out of 28 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
test/test_scanners.py Added sndhdr scanner tests and updated text scanner assertions to use lowercase text type names
test/test_main.py Removed deprecated imghdr compatibility tests
test/test_common_extensions.py Updated function calls to match renamed public API
test/resources/system/test_list.json Added test JSON file with array structure
test/resources/audio/*.mp3 Added MP3 test files for audio detection
test/resources/audio/test.sndr Added SNDR format test file
test/resources/audio/test.opus Added Opus format test file
pyproject.toml Disabled black and flake8 linting in favor of Ruff
puremagic/scanners/text_scanner.py Major refactoring with CSV detection and dynamic format checks
puremagic/scanners/sndhdr_scanner.py New scanner for audio formats
puremagic/scanners/python_scanner.py Enhanced Python code detection with keyword/pattern matching
puremagic/scanners/json_scanner.py Added support for JSON arrays
puremagic/main.py Version bump, function renames, new scanner integration, error type changes
CHANGELOG.md Updated with issue #85 reference
.gitignore Added VS Code exclusions

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

@cdgriffith cdgriffith changed the title Version 2.0.0b5 Version 2.0.0 Feb 20, 2026
@cdgriffith cdgriffith merged commit b2e2df1 into master Feb 20, 2026
10 checks passed
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.

5 participants