Skip to content

Commit

Permalink
TYP: Annotate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 5, 2023
1 parent 20ceede commit e54c5ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extend-select = [
# "D", # pydocstyle
"UP",
"YTT",
# "ANN", # annotations
"ANN", # annotations
# "S", # bandit
"BLE",
"FBT",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit e54c5ae

Please sign in to comment.