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

add CI build and test for context-py #115

Merged
merged 21 commits into from
Oct 4, 2024
Merged

Conversation

dfrankland
Copy link
Member

@dfrankland dfrankland commented Oct 4, 2024

Adds a build and test process for context-py Python bindings

Copy link

trunk-staging-io bot commented Oct 4, 2024

✅ 91 passed ⋅ (learn more)

settingsdocs ⋅ learn more about trunk.io

@dfrankland dfrankland marked this pull request as ready for review October 4, 2024 16:00
Copy link
Collaborator

@gnalh gnalh left a 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?

Comment on lines +46 to +51
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

Copy link
Member Author

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/

Copy link
Member Author

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)

Comment on lines +1 to +2
[bandit]
exclude = tests
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

asserts are used in tests and bandit says to exclude tests 🤷
https://bandit.readthedocs.io/en/latest/config.html#exclusions

Copy link
Member Author

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

Comment on lines -33 to 42
disabled:
enabled:
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
enabled:
- trunk-upgrade-available
Copy link
Member Author

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

@dfrankland dfrankland merged commit a5ac2d3 into main Oct 4, 2024
11 checks passed
@dfrankland dfrankland deleted the dylan/add-py-build-test branch October 4, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants