test: add basic Git metadata samples - #1435
Open
vivekjm wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #662.
This adds three small, clear-cut examples to the basic test corpus:
.gitattributesfile with common text, binary, and Linguist attributes.gitmodulesfile with two fictional submodule entriesAll three samples are original examples written from scratch for this pull request; no external source material was copied. I used an AI coding assistant while preparing and validating the contribution.
Tests:
python/.venv/bin/magika --json tests_data/basic/diff/weather-station.patch tests_data/basic/gitattributes/repository.gitattributes tests_data/basic/gitmodules/project.gitmodules(all classified correctly withstandard_v3_3, scores 0.999-1.000)python/.venv/bin/python python/scripts/run_quick_test_magika_module.pyPATH="$PWD/python/.venv/bin:$PATH" python/.venv/bin/python python/scripts/run_quick_test_magika_cli.py --client-path python/.venv/bin/magikago test ./...(fromgo/)git diff --check