diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index f50363b1e0..a784f2c7fa 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -10,7 +10,7 @@ jobs: cron-gpu: if: github.repository == 'Project-MONAI/MONAI' container: - image: nvcr.io/nvidia/pytorch:20.03-py3 # CUDA 10.2 + image: nvcr.io/nvidia/pytorch:21.06-py3 # CUDA 11.3 options: "--gpus all" runs-on: [self-hosted, linux, x64, common] strategy: diff --git a/.github/workflows/setupapp.yml b/.github/workflows/setupapp.yml index ede2c87b92..4ae18d756a 100644 --- a/.github/workflows/setupapp.yml +++ b/.github/workflows/setupapp.yml @@ -21,7 +21,7 @@ jobs: coverage-py3: if: github.repository == 'Project-MONAI/MONAI' container: - image: nvcr.io/nvidia/pytorch:20.03-py3 # CUDA 10.2 + image: nvcr.io/nvidia/pytorch:21.06-py3 # CUDA 11.3 options: --gpus all runs-on: [self-hosted, linux, x64, common] steps: diff --git a/setup.cfg b/setup.cfg index 8842bf852a..e04997b01d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -100,20 +100,11 @@ max_line_length = 120 # E501 is not flexible enough, we're using B950 instead ignore = E203 - E305 - E402 E501 - E721 E741 - F821 - F841 - F999 W503 W504 C408 - E302 - W291 - E303 N812 # lowercase 'torch.nn.functional' imported as non lowercase 'F' per_file_ignores = __init__.py: F401 exclude = *.pyi,.git,.eggs,monai/_version.py,versioneer.py,venv,.venv,_version.py diff --git a/tests/test_adaptors.py b/tests/test_adaptors.py index 3c351d9e20..f59bdaa15e 100644 --- a/tests/test_adaptors.py +++ b/tests/test_adaptors.py @@ -20,7 +20,7 @@ def test_function_signature(self): def foo(image, label=None, *a, **kw): pass - f = FunctionSignature(foo) + _ = FunctionSignature(foo) def test_single_in_single_out(self): def foo(image): diff --git a/tests/test_simulatedelay.py b/tests/test_simulatedelay.py index abf629f5c5..3a0507dae7 100644 --- a/tests/test_simulatedelay.py +++ b/tests/test_simulatedelay.py @@ -24,7 +24,7 @@ class TestSimulateDelay(NumpyImageTestCase2D): def test_value(self, delay_test_time: float): resize = SimulateDelay(delay_time=delay_test_time) start: float = time.time() - result = resize(self.imt[0]) + _ = resize(self.imt[0]) stop: float = time.time() measured_approximate: float = stop - start np.testing.assert_allclose(delay_test_time, measured_approximate, rtol=0.5) diff --git a/tests/test_unet.py b/tests/test_unet.py index 1ae0094d55..5f126fed97 100644 --- a/tests/test_unet.py +++ b/tests/test_unet.py @@ -198,7 +198,7 @@ def test_ill_input_shape(self): @parameterized.expand(ILL_CASES) def test_ill_input_hyper_params(self, input_param): with self.assertRaises(ValueError): - net = UNet(**input_param) + _ = UNet(**input_param) if __name__ == "__main__":