Skip to content

Commit aa23c57

Browse files
committed
fix pytest and mypy issues
1 parent d1b1015 commit aa23c57

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pytest
66
import numpy as np # pylint: disable=unused-import
77
import scipy.optimize # need to import globally to avoid reimport # pylint: disable=unused-import
8+
from typing import Any
89

910

1011
####
@@ -14,14 +15,14 @@
1415

1516
ALL = set('darwin linux win32'.split())
1617

17-
def pytest_runtest_setup(item):
18+
def pytest_runtest_setup(item:Any) -> None:
1819
supported_platforms = ALL.intersection(mark.name for mark in item.iter_markers())
1920
plat = sys.platform
2021
if supported_platforms and plat not in supported_platforms:
2122
pytest.skip(f"cannot run on platform {plat}")
2223

2324
# register platform markers
24-
def pytest_configure(config):
25+
def pytest_configure(config:Any) -> None:
2526
for plat in ALL:
2627
config.addinivalue_line(
2728
'markers', f"{plat}: mark test to run only on named platform")

src/test/sanity/test_load_save.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class FileData(TypedDict):
4848
values_to_ignore = [
4949
'roasttime', # without seconds in CSV
5050
'roasttzoffset',
51+
'roastepoch',
5152
'timex', # times are rounded to seconds
5253
'extradevices', # not stored in CSV, generated DUMMY (50)
5354
'extratimex', # times are rounded to

0 commit comments

Comments
 (0)