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

Handle precision for fail-under option #656

Merged
merged 7 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
240 changes: 192 additions & 48 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,149 +60,293 @@ jobs:
toxpython: 'python3.11'
tox_env: 'docs'
os: 'ubuntu-latest'
- name: 'py38-pytest81-xdist350-coverage74 (ubuntu)'
- name: 'py38-pytest81-xdist350-coverage75 (ubuntu)'
python: '3.8'
toxpython: 'python3.8'
python_arch: 'x64'
tox_env: 'py38-pytest81-xdist350-coverage74'
tox_env: 'py38-pytest81-xdist350-coverage75'
os: 'ubuntu-latest'
- name: 'py38-pytest81-xdist350-coverage74 (windows)'
- name: 'py38-pytest81-xdist350-coverage75 (windows)'
python: '3.8'
toxpython: 'python3.8'
python_arch: 'x64'
tox_env: 'py38-pytest81-xdist350-coverage74'
tox_env: 'py38-pytest81-xdist350-coverage75'
os: 'windows-latest'
- name: 'py38-pytest81-xdist350-coverage74 (macos)'
- name: 'py38-pytest81-xdist350-coverage75 (macos)'
python: '3.8'
toxpython: 'python3.8'
python_arch: 'arm64'
tox_env: 'py38-pytest81-xdist350-coverage75'
os: 'macos-latest'
- name: 'py38-pytest81-xdist350-coverage76 (ubuntu)'
python: '3.8'
toxpython: 'python3.8'
python_arch: 'x64'
tox_env: 'py38-pytest81-xdist350-coverage76'
os: 'ubuntu-latest'
- name: 'py38-pytest81-xdist350-coverage76 (windows)'
python: '3.8'
toxpython: 'python3.8'
python_arch: 'x64'
tox_env: 'py38-pytest81-xdist350-coverage74'
tox_env: 'py38-pytest81-xdist350-coverage76'
os: 'windows-latest'
- name: 'py38-pytest81-xdist350-coverage76 (macos)'
python: '3.8'
toxpython: 'python3.8'
python_arch: 'arm64'
tox_env: 'py38-pytest81-xdist350-coverage76'
os: 'macos-latest'
- name: 'py39-pytest81-xdist350-coverage74 (ubuntu)'
- name: 'py39-pytest81-xdist350-coverage75 (ubuntu)'
python: '3.9'
toxpython: 'python3.9'
python_arch: 'x64'
tox_env: 'py39-pytest81-xdist350-coverage74'
tox_env: 'py39-pytest81-xdist350-coverage75'
os: 'ubuntu-latest'
- name: 'py39-pytest81-xdist350-coverage74 (windows)'
- name: 'py39-pytest81-xdist350-coverage75 (windows)'
python: '3.9'
toxpython: 'python3.9'
python_arch: 'x64'
tox_env: 'py39-pytest81-xdist350-coverage74'
tox_env: 'py39-pytest81-xdist350-coverage75'
os: 'windows-latest'
- name: 'py39-pytest81-xdist350-coverage74 (macos)'
- name: 'py39-pytest81-xdist350-coverage75 (macos)'
python: '3.9'
toxpython: 'python3.9'
python_arch: 'arm64'
tox_env: 'py39-pytest81-xdist350-coverage75'
os: 'macos-latest'
- name: 'py39-pytest81-xdist350-coverage76 (ubuntu)'
python: '3.9'
toxpython: 'python3.9'
python_arch: 'x64'
tox_env: 'py39-pytest81-xdist350-coverage76'
os: 'ubuntu-latest'
- name: 'py39-pytest81-xdist350-coverage76 (windows)'
python: '3.9'
toxpython: 'python3.9'
python_arch: 'x64'
tox_env: 'py39-pytest81-xdist350-coverage74'
tox_env: 'py39-pytest81-xdist350-coverage76'
os: 'windows-latest'
- name: 'py39-pytest81-xdist350-coverage76 (macos)'
python: '3.9'
toxpython: 'python3.9'
python_arch: 'arm64'
tox_env: 'py39-pytest81-xdist350-coverage76'
os: 'macos-latest'
- name: 'py310-pytest81-xdist350-coverage74 (ubuntu)'
- name: 'py310-pytest81-xdist350-coverage75 (ubuntu)'
python: '3.10'
toxpython: 'python3.10'
python_arch: 'x64'
tox_env: 'py310-pytest81-xdist350-coverage74'
tox_env: 'py310-pytest81-xdist350-coverage75'
os: 'ubuntu-latest'
- name: 'py310-pytest81-xdist350-coverage74 (windows)'
- name: 'py310-pytest81-xdist350-coverage75 (windows)'
python: '3.10'
toxpython: 'python3.10'
python_arch: 'x64'
tox_env: 'py310-pytest81-xdist350-coverage74'
tox_env: 'py310-pytest81-xdist350-coverage75'
os: 'windows-latest'
- name: 'py310-pytest81-xdist350-coverage74 (macos)'
- name: 'py310-pytest81-xdist350-coverage75 (macos)'
python: '3.10'
toxpython: 'python3.10'
python_arch: 'arm64'
tox_env: 'py310-pytest81-xdist350-coverage75'
os: 'macos-latest'
- name: 'py310-pytest81-xdist350-coverage76 (ubuntu)'
python: '3.10'
toxpython: 'python3.10'
python_arch: 'x64'
tox_env: 'py310-pytest81-xdist350-coverage76'
os: 'ubuntu-latest'
- name: 'py310-pytest81-xdist350-coverage76 (windows)'
python: '3.10'
toxpython: 'python3.10'
python_arch: 'x64'
tox_env: 'py310-pytest81-xdist350-coverage74'
tox_env: 'py310-pytest81-xdist350-coverage76'
os: 'windows-latest'
- name: 'py310-pytest81-xdist350-coverage76 (macos)'
python: '3.10'
toxpython: 'python3.10'
python_arch: 'arm64'
tox_env: 'py310-pytest81-xdist350-coverage76'
os: 'macos-latest'
- name: 'py311-pytest81-xdist350-coverage74 (ubuntu)'
- name: 'py311-pytest81-xdist350-coverage75 (ubuntu)'
python: '3.11'
toxpython: 'python3.11'
python_arch: 'x64'
tox_env: 'py311-pytest81-xdist350-coverage74'
tox_env: 'py311-pytest81-xdist350-coverage75'
os: 'ubuntu-latest'
- name: 'py311-pytest81-xdist350-coverage74 (windows)'
- name: 'py311-pytest81-xdist350-coverage75 (windows)'
python: '3.11'
toxpython: 'python3.11'
python_arch: 'x64'
tox_env: 'py311-pytest81-xdist350-coverage74'
tox_env: 'py311-pytest81-xdist350-coverage75'
os: 'windows-latest'
- name: 'py311-pytest81-xdist350-coverage74 (macos)'
- name: 'py311-pytest81-xdist350-coverage75 (macos)'
python: '3.11'
toxpython: 'python3.11'
python_arch: 'arm64'
tox_env: 'py311-pytest81-xdist350-coverage75'
os: 'macos-latest'
- name: 'py311-pytest81-xdist350-coverage76 (ubuntu)'
python: '3.11'
toxpython: 'python3.11'
python_arch: 'x64'
tox_env: 'py311-pytest81-xdist350-coverage76'
os: 'ubuntu-latest'
- name: 'py311-pytest81-xdist350-coverage76 (windows)'
python: '3.11'
toxpython: 'python3.11'
python_arch: 'x64'
tox_env: 'py311-pytest81-xdist350-coverage74'
tox_env: 'py311-pytest81-xdist350-coverage76'
os: 'windows-latest'
- name: 'py311-pytest81-xdist350-coverage76 (macos)'
python: '3.11'
toxpython: 'python3.11'
python_arch: 'arm64'
tox_env: 'py311-pytest81-xdist350-coverage76'
os: 'macos-latest'
- name: 'py312-pytest81-xdist350-coverage74 (ubuntu)'
- name: 'py312-pytest81-xdist350-coverage75 (ubuntu)'
python: '3.12'
toxpython: 'python3.12'
python_arch: 'x64'
tox_env: 'py312-pytest81-xdist350-coverage74'
tox_env: 'py312-pytest81-xdist350-coverage75'
os: 'ubuntu-latest'
- name: 'py312-pytest81-xdist350-coverage74 (windows)'
- name: 'py312-pytest81-xdist350-coverage75 (windows)'
python: '3.12'
toxpython: 'python3.12'
python_arch: 'x64'
tox_env: 'py312-pytest81-xdist350-coverage74'
tox_env: 'py312-pytest81-xdist350-coverage75'
os: 'windows-latest'
- name: 'py312-pytest81-xdist350-coverage74 (macos)'
- name: 'py312-pytest81-xdist350-coverage75 (macos)'
python: '3.12'
toxpython: 'python3.12'
python_arch: 'arm64'
tox_env: 'py312-pytest81-xdist350-coverage75'
os: 'macos-latest'
- name: 'py312-pytest81-xdist350-coverage76 (ubuntu)'
python: '3.12'
toxpython: 'python3.12'
python_arch: 'x64'
tox_env: 'py312-pytest81-xdist350-coverage76'
os: 'ubuntu-latest'
- name: 'py312-pytest81-xdist350-coverage76 (windows)'
python: '3.12'
toxpython: 'python3.12'
python_arch: 'x64'
tox_env: 'py312-pytest81-xdist350-coverage74'
tox_env: 'py312-pytest81-xdist350-coverage76'
os: 'windows-latest'
- name: 'py312-pytest81-xdist350-coverage76 (macos)'
python: '3.12'
toxpython: 'python3.12'
python_arch: 'arm64'
tox_env: 'py312-pytest81-xdist350-coverage76'
os: 'macos-latest'
- name: 'pypy38-pytest81-xdist350-coverage74 (ubuntu)'
- name: 'pypy38-pytest81-xdist350-coverage75 (ubuntu)'
python: 'pypy-3.8'
toxpython: 'pypy3.8'
python_arch: 'x64'
tox_env: 'pypy38-pytest81-xdist350-coverage74'
tox_env: 'pypy38-pytest81-xdist350-coverage75'
os: 'ubuntu-latest'
- name: 'pypy38-pytest81-xdist350-coverage74 (windows)'
- name: 'pypy38-pytest81-xdist350-coverage75 (windows)'
python: 'pypy-3.8'
toxpython: 'pypy3.8'
python_arch: 'x64'
tox_env: 'pypy38-pytest81-xdist350-coverage74'
tox_env: 'pypy38-pytest81-xdist350-coverage75'
os: 'windows-latest'
- name: 'pypy38-pytest81-xdist350-coverage74 (macos)'
- name: 'pypy38-pytest81-xdist350-coverage75 (macos)'
python: 'pypy-3.8'
toxpython: 'pypy3.8'
python_arch: 'arm64'
tox_env: 'pypy38-pytest81-xdist350-coverage75'
os: 'macos-latest'
- name: 'pypy38-pytest81-xdist350-coverage76 (ubuntu)'
python: 'pypy-3.8'
toxpython: 'pypy3.8'
python_arch: 'x64'
tox_env: 'pypy38-pytest81-xdist350-coverage76'
os: 'ubuntu-latest'
- name: 'pypy38-pytest81-xdist350-coverage76 (windows)'
python: 'pypy-3.8'
toxpython: 'pypy3.8'
python_arch: 'x64'
tox_env: 'pypy38-pytest81-xdist350-coverage74'
tox_env: 'pypy38-pytest81-xdist350-coverage76'
os: 'windows-latest'
- name: 'pypy38-pytest81-xdist350-coverage76 (macos)'
python: 'pypy-3.8'
toxpython: 'pypy3.8'
python_arch: 'arm64'
tox_env: 'pypy38-pytest81-xdist350-coverage76'
os: 'macos-latest'
- name: 'pypy39-pytest81-xdist350-coverage74 (ubuntu)'
- name: 'pypy39-pytest81-xdist350-coverage75 (ubuntu)'
python: 'pypy-3.9'
toxpython: 'pypy3.9'
python_arch: 'x64'
tox_env: 'pypy39-pytest81-xdist350-coverage74'
tox_env: 'pypy39-pytest81-xdist350-coverage75'
os: 'ubuntu-latest'
- name: 'pypy39-pytest81-xdist350-coverage74 (windows)'
- name: 'pypy39-pytest81-xdist350-coverage75 (windows)'
python: 'pypy-3.9'
toxpython: 'pypy3.9'
python_arch: 'x64'
tox_env: 'pypy39-pytest81-xdist350-coverage74'
tox_env: 'pypy39-pytest81-xdist350-coverage75'
os: 'windows-latest'
- name: 'pypy39-pytest81-xdist350-coverage74 (macos)'
- name: 'pypy39-pytest81-xdist350-coverage75 (macos)'
python: 'pypy-3.9'
toxpython: 'pypy3.9'
python_arch: 'arm64'
tox_env: 'pypy39-pytest81-xdist350-coverage75'
os: 'macos-latest'
- name: 'pypy39-pytest81-xdist350-coverage76 (ubuntu)'
python: 'pypy-3.9'
toxpython: 'pypy3.9'
python_arch: 'x64'
tox_env: 'pypy39-pytest81-xdist350-coverage76'
os: 'ubuntu-latest'
- name: 'pypy39-pytest81-xdist350-coverage76 (windows)'
python: 'pypy-3.9'
toxpython: 'pypy3.9'
python_arch: 'x64'
tox_env: 'pypy39-pytest81-xdist350-coverage74'
tox_env: 'pypy39-pytest81-xdist350-coverage76'
os: 'windows-latest'
- name: 'pypy39-pytest81-xdist350-coverage76 (macos)'
python: 'pypy-3.9'
toxpython: 'pypy3.9'
python_arch: 'arm64'
tox_env: 'pypy39-pytest81-xdist350-coverage76'
os: 'macos-latest'
- name: 'pypy310-pytest81-xdist350-coverage74 (ubuntu)'
- name: 'pypy310-pytest81-xdist350-coverage75 (ubuntu)'
python: 'pypy-3.10'
toxpython: 'pypy3.10'
python_arch: 'x64'
tox_env: 'pypy310-pytest81-xdist350-coverage74'
tox_env: 'pypy310-pytest81-xdist350-coverage75'
os: 'ubuntu-latest'
- name: 'pypy310-pytest81-xdist350-coverage74 (windows)'
- name: 'pypy310-pytest81-xdist350-coverage75 (windows)'
python: 'pypy-3.10'
toxpython: 'pypy3.10'
python_arch: 'x64'
tox_env: 'pypy310-pytest81-xdist350-coverage74'
tox_env: 'pypy310-pytest81-xdist350-coverage75'
os: 'windows-latest'
- name: 'pypy310-pytest81-xdist350-coverage74 (macos)'
- name: 'pypy310-pytest81-xdist350-coverage75 (macos)'
python: 'pypy-3.10'
toxpython: 'pypy3.10'
python_arch: 'arm64'
tox_env: 'pypy310-pytest81-xdist350-coverage75'
os: 'macos-latest'
- name: 'pypy310-pytest81-xdist350-coverage76 (ubuntu)'
python: 'pypy-3.10'
toxpython: 'pypy3.10'
python_arch: 'x64'
tox_env: 'pypy310-pytest81-xdist350-coverage76'
os: 'ubuntu-latest'
- name: 'pypy310-pytest81-xdist350-coverage76 (windows)'
python: 'pypy-3.10'
toxpython: 'pypy3.10'
python_arch: 'x64'
tox_env: 'pypy310-pytest81-xdist350-coverage74'
tox_env: 'pypy310-pytest81-xdist350-coverage76'
os: 'windows-latest'
- name: 'pypy310-pytest81-xdist350-coverage76 (macos)'
python: 'pypy-3.10'
toxpython: 'pypy3.10'
python_arch: 'arm64'
tox_env: 'pypy310-pytest81-xdist350-coverage76'
os: 'macos-latest'
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
# Note the order is intentional to avoid multiple passes of the hooks
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.5
rev: v0.6.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes, --unsafe-fixes]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
4 changes: 2 additions & 2 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Authors
=======

* Marc Schlaich - \http://www.schlamar.org
* Marc Schlaich - https://github.com/schlamar (\http://www.schlamar.org)
* Rick van Hattem - http://wol.ph
* Buck Evan - https://github.com/bukzor
* Eric Larson - http://larsoner.com
Expand All @@ -19,7 +19,7 @@ Authors
* Michael Elovskikh - https://github.com/wronglink
* Saurabh Kumar - https://github.com/theskumar
* Michael Elovskikh - https://github.com/wronglink
* Daniel Hahler - https://daniel.hahler.de
* Daniel Hahler - https://github.com/blueyed (\https://daniel.hahler.de)
* Florian Bruhin - http://www.the-compiler.org
* Zoltan Kozma - https://github.com/kozmaz87
* Francis Niu - https://flniu.github.io
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Changelog
=========

5.1.0 (2024-09-??)
------------------

* Updated various documentation inaccuracies, especially on subprocess handling.
* Changed fail under checks to use the precision set in the coverage configuration.
Now it will perform the check just like ``coverage report`` would.

5.0.0 (2024-03-24)
------------------

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ include CHANGELOG.rst
include CONTRIBUTING.rst
include LICENSE
include README.rst
include SECURITY.md

global-exclude *.py[cod] __pycache__/* *.so *.dylib
Loading
Loading