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

feat: trying a license checker #184

Merged
merged 4 commits into from
Oct 24, 2024
Merged

feat: trying a license checker #184

merged 4 commits into from
Oct 24, 2024

Conversation

michaelneale
Copy link
Collaborator

This will check that licensed of dependencies brought in are valid

run: |
python .github/workflows/scripts/check_licenses.py \
pyproject.toml || exit_code=$?
if [ "${exit_code:-0}" -eq 1 ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shall we use the condition of "the exit code is not 0" just in case the script returns some error with exit code other than 1? also set the default value to 1 if exit_code does not exist

eg. if [ "${exit_code:-1}" -ne 0 ]

Copy link
Collaborator

@lifeizhou-ap lifeizhou-ap left a comment

Choose a reason for hiding this comment

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

Nice one!

I added a comment above about checking the script result so that this check won't pass if the script itself fails

run: |
python .github/workflows/scripts/check_licenses.py \
packages/exchange/pyproject.toml || exit_code=$?
if [ "${exit_code:-0}" -eq 1 ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @michaelneale sorry I did not notice we check the exchange licences here. maybe change here too.

also one small thing about ${exit_code:-0}, shall we change to ${exit_code:-1}? in this case, if the exit_code does not exist, we won't treat it as licence check passing.

@michaelneale michaelneale merged commit e7f7434 into main Oct 24, 2024
5 checks passed
@michaelneale michaelneale deleted the license-checker branch October 24, 2024 07:00
salman1993 added a commit that referenced this pull request Oct 24, 2024
…rypoint-refactor

* origin/main:
  feat: support optional params jsonschema conversion in exchange (#188)
  fix: correct context loading from session new/overwrite and resume (#180)
  feat: trying a license checker (#184)
  docs: getting index.md in sync with readme (#183)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants