-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Rewrite pyRevit configurations #2482
base: develop
Are you sure you want to change the base?
Conversation
@jmcouffin @sanzoghenzo how to trigger github action? |
|
I just launched it. I won't be able to review just now, best I can do is install the wip that will be created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome job @dosymep !
I didn't run the code, only skimmed through, and only found some grammar to fix (ShouldThrows -> ShouldThrow
).
Do you think it would be worth creating separate repo(s) and nuget package(s) for this feature (just to start the transition to a better code structure)?
dev/pyRevitLabs/tests/pyRevitLabs.Configurations.Yaml.Tests/YamlConfigurationUnitTests.cs
Outdated
Show resolved
Hide resolved
dev/pyRevitLabs/tests/pyRevitLabs.Configurations.Yaml.Tests/YamlConfigurationUnitTests.cs
Outdated
Show resolved
Hide resolved
dev/pyRevitLabs/tests/pyRevitLabs.Configurations.Yaml.Tests/YamlConfigurationUnitTests.cs
Outdated
Show resolved
Hide resolved
dev/pyRevitLabs/tests/pyRevitLabs.Configurations.Tests/ConfigurationTests.cs
Outdated
Show resolved
Hide resolved
dev/pyRevitLabs/tests/pyRevitLabs.Configurations.Tests/ConfigurationTests.cs
Outdated
Show resolved
Hide resolved
dev/pyRevitLabs/tests/pyRevitLabs.Configurations.Json.Tests/JsonConfigurationUnitTests.cs
Outdated
Show resolved
Hide resolved
dev/pyRevitLabs/tests/pyRevitLabs.Configurations.Ini.Tests/IniConfigurationUnitTests.cs
Outdated
Show resolved
Hide resolved
dev/pyRevitLabs/tests/pyRevitLabs.Configurations.Ini.Tests/IniConfigurationUnitTests.cs
Outdated
Show resolved
Hide resolved
dev/pyRevitLabs/tests/pyRevitLabs.Configurations.Ini.Tests/IniConfigurationUnitTests.cs
Outdated
Show resolved
Hide resolved
it won't work, we have dependencies on this repo, at the moment I still don't know how to do this :( |
HI @dosymep, The attributes solution is really nice! Just one question, out of curiosity: why did you turn |
@sanzoghenzo |
Yes I saw that, i should have asked you "why can't you use generics with reflection?" but it doesn't matter as long as it works! 😉 it is just something I have to learn about .net... |
because when I ask property type from reflections, reflection api return me an object of the |
remaining
|
As for the python side, do you think that we can directly use these new classes in the Are user-defined sections and keys supported? |
1 yep |
ini-parser
I think in general a start has been made, it remains to rewrite the logic of the config in python