Skip to content

Comments

feat: trying a license checker#184

Merged
michaelneale merged 4 commits intomainfrom
license-checker
Oct 24, 2024
Merged

feat: trying a license checker#184
michaelneale merged 4 commits intomainfrom
license-checker

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
@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)
ahau-square pushed a commit that referenced this pull request May 2, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
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