Skip to content

[_795] allow options to be accessed as attributes of metadata obj#796

Open
d-w-moore wants to merge 5 commits intoirods:mainfrom
d-w-moore:795.m
Open

[_795] allow options to be accessed as attributes of metadata obj#796
d-w-moore wants to merge 5 commits intoirods:mainfrom
d-w-moore:795.m

Conversation

@d-w-moore
Copy link
Collaborator

No description provided.

Copy link
Contributor

@alanking alanking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address or explicitly ignore Ruff as you see fit.

@d-w-moore d-w-moore changed the title [_795] allow options to be accessed as attrs of metadata obj [_795] allow options to be accessed as attributes of metadata obj Feb 17, 2026
Copy link
Contributor

@korydraughn korydraughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff so far.

There are a few more things being reported by ruff.

@korydraughn
Copy link
Contributor

After some discussion, the current state of this PR is that it is working and all that's left to do is address the ruff report and code review comments.

Copy link
Contributor

@korydraughn korydraughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squash to taste if everything is working as intended.

Co-authored-by: Kory Draughn <korydraughn@ymail.com>
@d-w-moore
Copy link
Collaborator Author

Squash to taste if everything is working as intended.

Ok . added test. Will do the squash after I see all tests are passing

Copy link
Contributor

@alanking alanking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Just had one question. Please notify when ready

if __name__ == "__main__":
# let the tests find the parent irods lib
sys.path.insert(0, os.path.abspath("../.."))
unittest.main()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ruff said to delete this? Does this affect how we run tests or any of our documentation for running tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny, I'm not seeing the notation ruff made. Is there a way to find it?

What was the specific comment or notation it made?

That line is there so that the test can be run as a script, from within the test directory.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I was wondering why this line was removed. I figured Ruff suggested its removal, but maybe not.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I was wondering why this line was removed. I figured Ruff suggested its removal, but maybe not.

Oh! Good eye. The deletion was not deliberate. Reversing it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see tests failing now. Is this change related to the results of the test runs in GHAs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants