-
Couldn't load subscription status.
- Fork 2
Add scripts to generate sample data #2
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: João Gonçalves <[email protected]>
* Creating the concepts needs to be decouple from creating the concept_schemes, as concepts might need to be added to existing concept_schemes. Signed-off-by: João Gonçalves <[email protected]>
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
|
|
||
| # Configuration | ||
| API_URL = "http://localhost:8000" | ||
| API_TOKEN = "missing" |
Copilot
AI
Apr 5, 2025
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.
Using a hard-coded API token may lead to security issues; consider retrieving the token from an environment variable instead.
| API_TOKEN = "missing" | |
| import os | |
| API_TOKEN = os.getenv("API_TOKEN", "missing") |
| await create_schemes() | ||
|
|
||
| if args.concepts: | ||
| if not args.scheme_id: |
Copilot
AI
Apr 5, 2025
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.
When '--scheme-id' is missing while creating concepts, consider exiting with a non-zero status code (e.g., using sys.exit(1)) rather than only printing an error message, to properly signal the failure.
|
Not needed now as we have useful data but maybe useful in the future... |
Moving over from cauldron/py-semantic-taxonomy#45