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-check, verbosity control (-v/-q) and --config option #134

Merged
merged 15 commits into from
Jul 25, 2023
Merged

Conversation

dalito
Copy link
Member

@dalito dalito commented Jul 20, 2023

This PR adds a new option --ci-check to the voc4cat command line interface to run the checks made for CI/gh-actions (in #131). Some improvements were made along the way:

  • Added -v / -q options to control verbosity of logging.
  • Added --config options to point to config file (typically idrange.toml).
  • Changed config.py (again) to make updating the config easier and to ensure consistent state (important for testing).
  • Changed merge_vocab to be a argparse-based CLI script with logging.
  • All scripts can now log to same logfile in consistent format.

Still to do:

  • Validate that the added --ci-check option works fine in CI / gh-actions of voc4cat-template.

Closes #133

@dalito dalito added the enhancement Request for changing or improving existing features label Jul 20, 2023
@dalito dalito added this to the 0.5.0 milestone Jul 20, 2023
@dalito dalito changed the title Add --check-ci option and verbosity control by -v/-q Add --ci-check option and verbosity control by -v/-q Jul 20, 2023
@dalito dalito changed the title Add --ci-check option and verbosity control by -v/-q Add --ci-check, verbosity control (-v/-q) and --config option Jul 25, 2023
This should close the handlers (and files) before exit.
With this all CL scripts can log with their name and
we avoid a conflict in hierarchy for convert which
is used once as module and once as CLI script.
@dalito dalito merged commit d5cac24 into main Jul 25, 2023
3 checks passed
@dalito dalito deleted the issue133 branch July 25, 2023 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request for changing or improving existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to voc4cat cli to run CI checks
1 participant