-
Notifications
You must be signed in to change notification settings - Fork 40
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
Allow for .bids-validator-config.json filename #3141
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3141 +/- ##
==========================================
+ Coverage 44.03% 44.96% +0.93%
==========================================
Files 593 593
Lines 37807 37807
Branches 1125 1159 +34
==========================================
+ Hits 16647 16999 +352
+ Misses 20958 20617 -341
+ Partials 202 191 -11 ☔ View full report in Codecov by Sentry. |
Well, there seems to be quite a bit of logic linked to having But in either case -- why to forbid other |
yikes, tests fail with
unrelated, filed |
All this would do is not fail on the presence of this file. OpenNeuro will continue to pass its own configuration, so these files will not affect the validation of the dataset on OpenNeuro. Is your goal to override OpenNeuro's configuration? What are your use cases? I doubt we'd permit this. |
that would be unfortunate but I think less critical -- most of them are warnings so we could ensure we are ignoring what we know is Ok and then would react on any new warning or error if they emerge. here is the content of that file: {
"ignore": [
"INCONSISTENT_PARAMETERS",
"INCONSISTENT_SUBJECTS",
"MISSING_SESSION",
"STIMULUS_FILE_MISSING",
"UNUSED_STIMULUS"
]
} I really think that providing targetted configuration for validation is ways better than the current facilitated practice many folks adhere to - ignoring all tricky files via check out those counts and note even a case of abuse of .bidsignore as a directory$> wc -l ds*/.bidsignore | sort -n | nl | tail
wc: ds001583/.bidsignore: Is a directory
245 33 ds002041/.bidsignore
246 34 ds000108/.bidsignore
247 39 ds003684/.bidsignore
248 64 ds000240/.bidsignore
249 82 ds002320/.bidsignore
250 87 ds004475/.bidsignore
251 216 ds004808/.bidsignore
252 553 ds004505/.bidsignore
253 2674 ds000221/.bidsignore
254 4576 total
and cases like $> cat ds000108/.bidsignore
sub-01/func
sub-02/func
... |
@effigies @nellh @rwblair WDYT about a global solution to allow / use the provided .bids-validator-config.json? e.g.
|
We have a legitimate configuration for (legacy) bids-validation within dataset in .bids-validator-config.json . git push was denied with no specific file mentioned but I guess it is because of that file.
2538051
to
f54e4b4
Compare
ping on this issue. Here is my current list of .dotfiles
and IMHO they are all legitimate ;-) Even if my .bids-validator-config.json gets ignored -- I will "survive" while progressing forward while openneuro still complains - I will just finally ignore stuff in .bidsignore : ATM I cannot even push! |
me complaining about all kinds of legitimate .dotfilesping on this: (deno) yoh@typhon:/mnt/DATA/data/yoh/1076_spacetop$ git push openneuro-git master:main
Enumerating objects: 8110, done.
Counting objects: 100% (7689/7689), done.
Delta compression using up to 32 threads
Compressing objects: 100% (2549/2549), done.
Writing objects: 100% (7264/7264), 6.80 MiB | 11.58 MiB/s, done.
Total 7264 (delta 5949), reused 5764 (delta 4696), pack-reused 0
remote: Resolving deltas: 100% (5949/5949), completed with 321 local objects.
remote: .bidsignore
remote: .datalad/.gitattributes
remote: .datalad/config
remote: .gitattributes
remote: .gitignore
remote: .gitmodules
remote:
remote: -------------------------------------------------------------------------
remote: Your push was rejected because it failed validation.
remote: Please test with bids-validator locally to resolve any errors before pushing.
remote: -------------------------------------------------------------------------
To https://openneuro.org/git/0/ds005256
! [remote rejected] master -> main (pre-receive hook declined)
error: failed to push some refs to 'https://openneuro.org/git/0/ds005256' |
This is #3247. |
We have a legitimate configuration for (legacy) bids-validation within dataset in .bids-validator-config.json .
git push was denied with no specific file mentioned but I guess it is because of that file.