Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add targets into main function

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli, testing-qa

Research direction

Start at the main function behind python -m ansys.tools.example_coverage and trace how command-line options are parsed. Define completion as global and per-module error and warning thresholds producing the requested outcomes; the optional configuration-file behavior still needs scope and a project decision.

Written by the indexing model from the issue text.

Description

We need a way of raising an exception and warning when thresholds aren't met (global or by module).

For example:

python -m ansys.tools.example_coverage -f "path_to_package" --error_thresh 50 --warn_thresh 80

This will raise an error if global coverage is below 50% and a warning if below 80%.

Could also implement in a modules by module basis:

python -m ansys.tools.example_coverage -f "path_to_package" --error_thresh_module 50 --warn_thresh_module 80

Consider having a configuration file to make this easier to configure (ignoring regex, etc).

Dominant language
Python
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ansys/example-coverage

All issues in ansys/example-coverage

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.