-
Notifications
You must be signed in to change notification settings - Fork 0
use immutable dependencies #5
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
2e019dd
chore: use immutable dependencies
paulschwoerer c2e5544
remove accidentally added requirements.txt
paulschwoerer fc46791
chore: unify dependency pinning setup
paulschwoerer 802ff9e
chore: add '--only-binary :all:' option to workflow yml
paulschwoerer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,27 @@ | ||
| ls venv &> /dev/null || python3 -mvenv venv || exit 1 | ||
| source venv/bin/activate || exit 1 | ||
| pip install -e '.[all]' || exit 1 | ||
|
|
||
| pip install pip-tools pip-audit|| exit 1 | ||
|
|
||
| if [ ! -f "requirements.txt" ]; then | ||
| echo "requirements.txt not found. Compiling from pyproject.toml..." | ||
| pip-compile -v --all-extras --generate-hashes --allow-unsafe --output-file=requirements.txt pyproject.toml || exit 1 | ||
| # --allow-unsafe / --no-allow-unsafe | ||
| # Pin packages considered unsafe: distribute, | ||
| # pip, setuptools. | ||
| # | ||
| # WARNING: Future versions of pip-tools will | ||
| # enable this behavior by default. Use --no- | ||
| # allow-unsafe to keep the old behavior. It is | ||
| # recommended to pass the --allow-unsafe now | ||
| # to adapt to the upcoming change. | ||
| fi | ||
|
|
||
| echo "Auditing locked dependencies..." | ||
| # not using --strict because no vulnerability info can be found for http-request-recorder | ||
| pip-audit --require-hashes -r requirements.txt || exit 1 | ||
|
|
||
| echo "Installing with strict hash verification..." | ||
| pip install --require-hashes --only-binary :all: -r requirements.txt || exit 1 | ||
|
|
||
| pre-commit install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,12 @@ | ||
| # pre-commit autoupdate --freeze | ||
| repos: | ||
| - repo: https://github.com/charliermarsh/ruff-pre-commit | ||
| rev: 'v0.12.10' | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: '5e2fb545eba1ea9dc051f6f962d52fe8f76a9794' # frozen: v0.15.13 | ||
| hooks: | ||
| - id: ruff | ||
| args: ['--fix'] | ||
|
|
||
| - repo: https://github.com/hhatto/autopep8 | ||
| rev: 'v2.3.2' | ||
| rev: '4046ad49e25b7fa1db275bf66b1b7d60600ac391' # frozen: v2.3.2 | ||
| hooks: | ||
| - id: autopep8 |
|
paulschwoerer marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.