Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-validation script: Add filter for extensions #6490

Merged

Conversation

DecimalTurn
Copy link
Contributor

Allowing the use of the cross-validation script with an extensions filter to make the script run faster.
Especially useful when testing multiple samples.

Related comment : #6476 (comment)

It would help if I could run the test script on only the .bs files (or only the Bluespec BH directory) -- any advice on how to do that?

It's too late for this PR since the sample-related issue is resolved, but I had to do this recently as well when having to fix a classifier issue with namely .bas and .cls files. The branch with that feature is this here https://github.com/DecimalTurn/linguist/tree/cross-validation-filter

The syntax to apply the extensions filter is to pass the --extensions option with extensions (including the dot) seperated by a comma.

bundle exec script/cross-validation --extensions=.bas,.cls
or
bundle exec script/cross-validation --extensions=".bas, .cls"

@DecimalTurn DecimalTurn requested a review from a team as a code owner July 26, 2023 02:07
@DecimalTurn DecimalTurn changed the title Add filter for extensions Cross-validation script: Add filter for extensions Jul 26, 2023
@lildude lildude added this pull request to the merge queue Sep 7, 2023
Merged via the queue into github-linguist:master with commit 073af2e Sep 7, 2023
5 checks passed
@DecimalTurn DecimalTurn deleted the cross-validation-filter branch September 16, 2023 19:03
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants