-
Notifications
You must be signed in to change notification settings - Fork 3
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
add CI build and test for context-py #115
Conversation
✅ 91 passed ⋅ (learn more) |
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.
Overall looks good. Now that we have Python code, can we also add python linters into this repo?
if [ -f /usr/bin/dnf ]; then | ||
# quay.io/pypa/manylinux_2_28_x86_64:latest | ||
/usr/bin/dnf upgrade | ||
/usr/bin/dnf install -y pkgconf perl-IPC-Cmd openssl-devel python3-pip | ||
/usr/bin/ln -s /usr/bin/pip3 /usr/bin/pip | ||
/usr/bin/ln -sf /usr/bin/python3.11 /usr/bin/python3 |
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.
What is this?
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.
# Needed for `openssl-sys`:
# https://docs.rs/openssl/latest/openssl/
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.
This file is not used by trunk
CLI (and IMO is very divergent from normal Rust code styling)
[bandit] | ||
exclude = tests |
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.
assert
s are used in tests and bandit says to exclude tests
🤷
https://bandit.readthedocs.io/en/latest/config.html#exclusions
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.
upgraded to support python linters and formatters
disabled: | ||
enabled: | ||
- trunk-announce | ||
- trunk-check-pre-push | ||
- trunk-fmt-pre-commit | ||
enabled: | ||
- trunk-upgrade-available |
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.
I think we want to use these
Adds a build and test process for
context-py
Python bindings