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

Fix coverage precision to 96.77% #1351

Merged
merged 3 commits into from Feb 1, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/coverage
Expand Up @@ -8,4 +8,4 @@ export SOURCE_FILES="uvicorn tests"

set -x

${PREFIX}coverage report --show-missing --skip-covered --fail-under=97
${PREFIX}coverage report --show-missing --skip-covered --fail-under=96.77
4 changes: 4 additions & 0 deletions setup.cfg
Expand Up @@ -71,7 +71,11 @@ include = uvicorn/*, tests/*
plugins =
coverage_conditional_plugin

[coverage:report]
precision = 2

[coverage:coverage_conditional_plugin]
rules =
"sys_platform == 'win32'": py-win32
"sys_version_info >= (3, 8)": py-gte-38
"sys_version_info < (3, 8)": py-lt-38
2 changes: 1 addition & 1 deletion tests/test_config.py
Expand Up @@ -10,7 +10,7 @@

if sys.version_info < (3, 8): # pragma: py-gte-38
from typing_extensions import Literal
else:
else: # pragma: py-lt-38
from typing import Literal

import pytest
Expand Down
2 changes: 1 addition & 1 deletion uvicorn/config.py
Expand Up @@ -14,7 +14,7 @@

if sys.version_info < (3, 8): # pragma: py-gte-38
from typing_extensions import Literal
else:
else: # pragma: py-lt-38
from typing import Literal

import click
Expand Down