-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support for multiple configuration files in a directory #585
Support for multiple configuration files in a directory #585
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## master #585 +/- ##
=======================================
Coverage 99.47% 99.48%
=======================================
Files 84 84
Lines 5568 5615 +47
=======================================
+ Hits 5539 5586 +47
Misses 29 29
Continue to review full report at Codecov.
|
One reason to use the I don't see anything to add to this now, @osma can you take a look? |
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.
Code looks good!
I tested this briefly and couldn't make it not work ;)
Great work!
Adds support for a project configuration directory. Closes #584.
Checks for duplicated project IDs across all configuration files in the configuration directory, and raises
ConfigurationException
if any are found.For now I chose
projects.d
as the name for the default configuration directory, because it is nicely in line with theprojects.cfg
andprojects.toml
names for the default configuration files. Downside is that this name can be confusing: one could use "projects directory" to refer to the (projects) configuration directory (projects.d
) or the projects data directory (data/projects
). Or even to the parent directory containingprojects.cfg
anddata/
(in Docker instances I have been using/annif-projects
directory for this).I open PR as draft now; this probably needs some more tests etc.