From 65708bcd1caea7b6202d7f2ae900ca234a5616fd Mon Sep 17 00:00:00 2001 From: Francesco Ballarin Date: Sat, 15 Jul 2023 17:44:20 +0200 Subject: [PATCH] flake8-import-restrictions errors now use the prefix IMR2 rather than I20 --- setup.cfg | 6 +++--- tests/data/add_installation_cells/from_numpy_import.ipynb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index a3d266b..729ce13 100644 --- a/setup.cfg +++ b/setup.cfg @@ -61,9 +61,9 @@ max-line-length = 120 show-source = True docstring-convention = numpy inline-quotes = double -i2041_exclude = open_in_cloud_workflow, open_in_cloud_workflow.* -i2045_include = * -i2045_exclude = open_in_cloud_workflow, open_in_cloud_workflow.* +imr241_exclude = open_in_cloud_workflow, open_in_cloud_workflow.* +imr245_include = * +imr245_exclude = open_in_cloud_workflow, open_in_cloud_workflow.* ignore = ANN101, W503 exclude = .eggs, build, dist per-file-ignores = diff --git a/tests/data/add_installation_cells/from_numpy_import.ipynb b/tests/data/add_installation_cells/from_numpy_import.ipynb index 28cfac0..c8f1b3e 100644 --- a/tests/data/add_installation_cells/from_numpy_import.ipynb +++ b/tests/data/add_installation_cells/from_numpy_import.ipynb @@ -7,7 +7,7 @@ "metadata": {}, "outputs": [], "source": [ - "from numpy import * # noqa: F401, F403, I2041, I2043, I2045" + "from numpy import * # noqa: F401, F403, IMR241, IMR243, IMR245" ] } ],