Adding a TOML file Config

add00_3

Add00

Posted on October 5, 2024

Adding a TOML file Config

Greetings,

As part of this weeks assignment we had to add a TOML config which would store the default arguments for the CLI tool. The twist was that this week we had to work with on someone else's repo we had never worked on before.

Fortunately, my classmates are all very nice people and I was quickly able to find a project which needed this feature implemented. After discussing with the owner I had permission and began to add the feature.

I was quite impressed by the through code documentation and the well organized nature of the project in accordance with MVC architecture. To handle reading TOML files I used the tomllib library with the tomli library as a fall back for older versions of python.

I tried my best to keep the code I wrote to the standard of the repo and made sure to comment the additional functions I added.

Once complete I made a feature branch for this new ability and then made a PR request to the original repo. Using a feature branch was something I didn't always do previously, but after this assignment I've began to see it uses more clearly.

💖 💪 🙅 🚩
add00_3
Add00

Posted on October 5, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related