From e54c5ae5afcfc3e4afe99a5eba45c431b3c7daf5 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Sat, 4 Nov 2023 22:20:53 -0400 Subject: [PATCH] TYP: Annotate tests --- pyproject.toml | 2 +- tests/test_schemes.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index be71737..e2935fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,7 @@ extend-select = [ # "D", # pydocstyle "UP", "YTT", - # "ANN", # annotations + "ANN", # annotations # "S", # bandit "BLE", "FBT", diff --git a/tests/test_schemes.py b/tests/test_schemes.py index 5c2c688..9404a28 100644 --- a/tests/test_schemes.py +++ b/tests/test_schemes.py @@ -3,7 +3,7 @@ import pytest from setuptools_scm import Configuration # type: ignore -from setuptools_scm.version import meta # type: ignore +from setuptools_scm.version import ScmVersion, meta from nipreps_versions.schemes import next_calver, nipreps_calver @@ -76,11 +76,11 @@ ), ], ) -def test_nipreps_calver(version, expected_next): +def test_nipreps_calver(version: ScmVersion, expected_next: str) -> None: assert nipreps_calver(version) == expected_next -def test_next_calver(): +def test_next_calver() -> None: # Omit optional arguments always passed by nipreps_calver assert ( next_calver(