From 556fa2c56c092c6896fa1c3045e69ad9b058511d Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Sat, 4 Nov 2023 21:36:12 -0400 Subject: [PATCH 1/3] COV: Ignore _version.py --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index de5269d..42b8b0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,5 +58,8 @@ python_version = "3.7" module = ["setuptools_scm.version", "setuptools_scm.config"] ignore_missing_imports = true +[tool.coverage.run] +omit = ["_version.py"] + [tool.coverage.report] fail_under = 100 From 765e2b47cf6a8753d44dd1f7bf6d76f6b53076f6 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Sat, 4 Nov 2023 21:36:27 -0400 Subject: [PATCH 2/3] TEST: Fix configuration import location --- tests/test_schemes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_schemes.py b/tests/test_schemes.py index 17a124d..fad9056 100644 --- a/tests/test_schemes.py +++ b/tests/test_schemes.py @@ -2,7 +2,7 @@ from functools import partial import pytest -from setuptools_scm.config import Configuration +from setuptools_scm import Configuration from setuptools_scm.version import meta from nipreps_versions.schemes import next_calver, nipreps_calver From 60ba896687cf4cfd6a77d8040addf744ef591bf1 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Sat, 4 Nov 2023 21:38:32 -0400 Subject: [PATCH 3/3] TYP: Ignore missing stubs --- tests/test_schemes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_schemes.py b/tests/test_schemes.py index fad9056..f8b23c6 100644 --- a/tests/test_schemes.py +++ b/tests/test_schemes.py @@ -2,8 +2,8 @@ from functools import partial import pytest -from setuptools_scm import Configuration -from setuptools_scm.version import meta +from setuptools_scm import Configuration # type: ignore +from setuptools_scm.version import meta # type: ignore from nipreps_versions.schemes import next_calver, nipreps_calver