From 57fcf767179462a5696543c8119f9e67082f9e48 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 26 May 2020 18:10:41 -0700 Subject: HACK: try to squelch pylint in CI Gitlab CI is showing lint errors like: =================================== FAILURES =================================== 6316 _______________________ [pylint] tests/harvest_state.py ________________________ 6317 E: 19,11: hs.next is not callable (not-callable) 6318 E: 33,11: hs.next is not callable (not-callable) 6319 E: 19,11: hs.next is not callable (not-callable) [...] this is confusing as we use pipenv with a lock, so I should see the exact same errors locally. This commit is a hack to try and fix this and unbreak builds until we can debug further. --- python/tests/harvest_state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/tests/harvest_state.py b/python/tests/harvest_state.py index da9bef84..4273830f 100644 --- a/python/tests/harvest_state.py +++ b/python/tests/harvest_state.py @@ -16,7 +16,7 @@ def test_harvest_state(): for d in list(hs.to_process): hs.complete(d) - assert hs.next() is None + assert hs.next() is None # pylint: disable=not-callable hs = HarvestState( start_date=datetime.date(2000,1,1), @@ -30,7 +30,7 @@ def test_harvest_state(): assert len(hs.to_process) == 5 hs = HarvestState(catchup_days=0) - assert hs.next() is None + assert hs.next() is None # pylint: disable=not-callable hs.enqueue_period( start_date=datetime.date(2000,1,1), end_date=datetime.date(2000,1,3), -- cgit v1.2.3