Skip to content

fail-under should be optional #15

@fabien-michel

Description

@fabien-michel

Summary

I've defined fail_under in my pyproject.toml, I want it to be used by default if not specified in pre-commit hook

pyproject.toml

[tool.coverage.report]
fail_under = 100

pre-commit-config.yaml

  -   repo: https://github.com/gtkacz/coverage-pre-commit
      rev: v0.1.1
      hooks:
      -   id: coverage-pre-commit
          args: [--command="coverage run"]

Error: RuntimeError: The fail-under argument must be passed and must be between 0 and 100.

Platform

arch

Version

0.1.1

Python version

3.12.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions