-
Notifications
You must be signed in to change notification settings - Fork 58
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
Copy dependencies to requirements.txt in pre commit #890
Copy dependencies to requirements.txt in pre commit #890
Conversation
6d26c18
to
7e23a71
Compare
|
||
def sync(): | ||
pyproject = tomllib.loads(Path("pyproject.toml").read_text()) | ||
dependencies = pyproject["project"]["dependencies"] |
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.
Are these all dependencies including dev deps or we have some development packages listed as dependencies?
coverage
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.
Good point, I forgot about them
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.
Added
8699c54
to
22b4ff5
Compare
- id: dependencies-sync | ||
name: "Copy dependencies from pyproject.toml to requirements.txt" | ||
language: system | ||
entry: python .snyk/dependency-sync.py |
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.
Add files
to run this only on pyproject.toml change, WDYT?
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.
Good idea, added
d09ccf2
to
692252b
Compare
692252b
to
cebc419
Compare
Pre-review checklist
Changes description
...