-
Notifications
You must be signed in to change notification settings - Fork 163
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
Implement support for a pyproject.toml config file #215
Implement support for a pyproject.toml config file #215
Conversation
This will avoid circular imports that would otherwise be caused by upcoming commits.
I just noticed the failure on Windows. I'll check this once I have access to a windows box. I assume I'll just have to use an older version of the toml lib. |
Okay.... so it seems |
I think this problem is caused by the Github Action using different installation options on Windows compared to Linux and MacOS (see .github/workflows/main.yml). My guess is we only need to remove the --no-index and --find-links arguments. The current command works on Windows because Vulture didn't have dependencies. I think @RJ722 wanted to look into this anyway, so feel free to ignore this for this pull request. But of course you can also try to fix the GitHub Action. |
That makes sense. Tomorrow I'll be out of the week-end and likely programming again all day, and after a whole day of coding my batteries are usually running on empty. I'll see if I can squeeze some time in for this. Sounds like a trivial fix. Whoever gets to it first then I guess 😉 |
Oh... in the PR I didn't add any design decisions I took along the way. The important ones can be summarised as follows:
|
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.
The code looks good, but you said I'm allowed to nitpick :-)
Adding typing information is an interesting idea, but I wouldn't want to introduce it together with the other changes. Also, can you please remove the pylint comments? I think they distract from the actual code.
References jendrikseipp#215
Just some house-keeping
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.
We're almost there :-)
…exhuma/vulture into exhuma-feature/164-config-file-support
Thanks a lot for all your work, @exhuma! |
Thanks as well for bearing with me and for the merge. I just now wanted to remove the Also, sorry for my rant from yesterday. I had a bad day... |
No worries. This was a difficult feature to add, so I'm glad we managed to get it in. |
Description
This change will read config values from a
pyproject.toml
file first, and then update those values with the CLI arguments.Related Issue
See #164
Checklist: