tanbro / pyyaml-include

yaml include other yaml
https://pypi.org/project/pyyaml-include/
GNU General Public License v3.0
77 stars 20 forks source link

Feature/relative includes #26

Closed JensHeinrich closed 1 year ago

JensHeinrich commented 1 year ago

Add the option to import relative to the current file to support structures like

test: !include foo/b.yml
some: !include bar/c.yml
feature: "Feature"
tanbro commented 1 year ago

@JensHeinrich thanks for the nice feature. But the test cases in tests/test_relative_dir.py not passed (https://github.com/tanbro/pyyaml-include/actions/runs/4006591315) Would you fix it?

JensHeinrich commented 1 year ago

@JensHeinrich thanks for the nice feature. But the test cases in tests/test_relative_dir.py not passed (https://github.com/tanbro/pyyaml-include/actions/runs/4006591315) Would you fix it?

Yes, working on it

JensHeinrich commented 1 year ago

@JensHeinrich thanks for the nice feature. But the test cases in tests/test_relative_dir.py not passed (https://github.com/tanbro/pyyaml-include/actions/runs/4006591315) Would you fix it?

So, I just realized I used a python 3.8 feature for the unittests ... Should I just suppress the tests for the earlier versions or try to work around the feature?

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication