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

proposal: use magic marks in comments to help make better decisions #114

Closed
damnever opened this issue Nov 6, 2022 · 2 comments · Fixed by #165
Closed

proposal: use magic marks in comments to help make better decisions #114

damnever opened this issue Nov 6, 2022 · 2 comments · Fixed by #165
Labels

Comments

@damnever
Copy link
Owner

damnever commented Nov 6, 2022

Just some random thoughts, something like this:

import a # pigar: requirements="package-a"

soup = BeautifulSoup(html, 'lxml') # pigar: requirements="lxml"

 # pigar: requirements="foo","bar == 1.0"
EXTRA_PACKAGES = ["foo", "bar"]

Maybe this is too much since pigar is not a package management tool, ref: https://github.com/damnever/pigar#faq

@damnever damnever pinned this issue Nov 6, 2022
@damnever damnever unpinned this issue Nov 6, 2022
@damnever damnever changed the title proposal: use special marks in comments to help make better decisions proposal: use magic marks in comments to help make better decisions Nov 6, 2022
@damnever
Copy link
Owner Author

damnever commented Nov 12, 2022

I think a command line option or a separate configuration file is acceptable.

@damnever
Copy link
Owner Author

damnever commented Nov 12, 2022

Related issue: #32, #103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant