Skip to content
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

Use non-strict mode when parsing .gitconfig #136

Merged
merged 4 commits into from
Dec 12, 2023

Conversation

qsantos
Copy link
Contributor

@qsantos qsantos commented Dec 11, 2023

I recognize that my ~/.gitconfig is a bit messy, but it has never been a problem before. This PR ensure that it works with kraken-build as well, removing a potential friction for users.

By default, configparser will raise when encountering the same section several times. There is no reason to do so here, and we can just merge the occurrences. This is done by passing strict=False to the configuration parser.

Quentin Santos added 2 commits December 11, 2023 10:36
By default, configparser will raise when encountering the same section
several times. There is no reason to do so here, and we can just merge
the occurrences. This is done by passing strict=False to the
configuration parser.
@qsantos qsantos requested a review from asmello December 11, 2023 09:58
Copy link
Contributor

@NiklasRosenstein NiklasRosenstein left a comment

Choose a reason for hiding this comment

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

Sounds reasonable. Thanks! 👍

@qsantos
Copy link
Contributor Author

qsantos commented Dec 12, 2023

I have a failure with isort in the CI (ran thrice to be sure), but not locally. Is it possible that the isort version differs between the context, or is its version pinned?

@NiklasRosenstein
Copy link
Contributor

Just had to merge in develop :)

@NiklasRosenstein NiklasRosenstein merged commit 143c77e into develop Dec 12, 2023
7 checks passed
@NiklasRosenstein NiklasRosenstein deleted the non-strict-gitconfig-parsing branch December 12, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants