-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update dandi.inspector_config.yaml #247
Conversation
Oh wow, is it finally time to elevate these to be DANDI upload requirements? 😲 Note the test here: https://github.com/NeurodataWithoutBorders/nwbinspector/blob/dev/tests/test_check_configuration.py#L68-L81 will have to be updated accordingly. |
Co-authored-by: Ben Dichter <[email protected]>
Co-authored-by: Ben Dichter <[email protected]>
Co-authored-by: Ben Dichter <[email protected]>
Co-authored-by: Ben Dichter <[email protected]>
Co-authored-by: Ben Dichter <[email protected]>
Co-authored-by: Ben Dichter <[email protected]>
Enhance Subject.age support
* propose changes to best practices * Update docs/best_practices/nwbfile_metadata.rst Co-authored-by: Cody Baker <[email protected]> * Update docs/best_practices/nwbfile_metadata.rst Co-authored-by: Cody Baker <[email protected]> Co-authored-by: Cody Baker <[email protected]>
The way we have it now, |
@bendichter Good catch: #255 |
* Update dandi.inspector_config.yaml * Update test_check_configuration.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Let's go ahead and merge this. I'd rather be ahead of DANDI's requirements than behind them |
There is one possible change we might need to make to DANDI validation before going forward with this, which is to require (at time of performing Otherwise, someone can simply install an earlier version of the Inspector and pass the new validation requirements without issue. Some pseudo-code import json
import urllib2
from packaging import version
from nwbinspector.utils import get_package_version
def check_current_version():
url = "https://pypi.org/pypi/nwbinspector/json"
data = json.load(urllib2.urlopen(urllib2.Request(url)))
versions = data["releases"].keys()
# get max_version from the `versions` list
return get_package_version(package_name="nwbinspector") == max_version |
Yeah that makes sense |
@bendichter OK do you think this deserves to be more on the DANDI side of things like in this dev branch: dandi/dandi-cli@master...catalystneuro:dandi-cli:force_usage_of_latest_nwb_inspector_release OR we should make this a check function (or just a general-purpose assertion for all core inspection functions) for the NWBInspector in and of itself (which could warn people to update ahead of attempting |
@bendichter How about this - in NWB Inspector, we always check if user is using most recent version of the NWB Inspector and include it in the report/message stream if not. Then on DANDI, bump the minimal version of the NWB Inspector to the version that enforces that? |
Codecov Report
@@ Coverage Diff @@
## dev #247 +/- ##
==========================================
+ Coverage 94.28% 94.39% +0.11%
==========================================
Files 18 19 +1
Lines 962 982 +20
==========================================
+ Hits 907 927 +20
Misses 55 55
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@bendichter OK since that last part is reliant on the DANDI side (see dandi/dandi-cli#1108) we can go ahead and merge this when you're ready |
Motivation
What was the reasoning behind this change? Please explain the changes briefly.
How to test the behavior?
Checklist
black
format? If not, simplypip install black
and runblack .
inside your fork.fix #XX
whereXX
is the issue number?