diff --git a/examples/Advanced_Sounding_With_Complex_Layout.py b/examples/Advanced_Sounding_With_Complex_Layout.py index e5f378d2a6..4f8cc18904 100644 --- a/examples/Advanced_Sounding_With_Complex_Layout.py +++ b/examples/Advanced_Sounding_With_Complex_Layout.py @@ -105,7 +105,7 @@ x1 = np.linspace(-100, 40, 8) x2 = np.linspace(-90, 50, 8) y = [1100, 50] -for i in range(0, 8): +for i in range(8): skew.shade_area(y=y, x1=x1[i], x2=x2[i], color='gray', alpha=0.02, zorder=1) # STEP 2: PLOT DATA ON THE SKEW-T. TAKE A COUPLE EXTRA STEPS TO diff --git a/pyproject.toml b/pyproject.toml index 3bfc8b8f21..b158ac639c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -126,7 +126,7 @@ exclude = ["docs", "build", "src/metpy/io/_metar_parser/metar_parser.py", "talks preview = true [tool.ruff.lint] -select = ["A", "B", "C", "CPY001", "D", "E", "E226", "F", "G", "I", "N", "NPY", "Q", "R", "S", "SIM", "T", "U", "W"] +select = ["A", "B", "C", "CPY001", "D", "E", "E226", "F", "G", "I", "N", "NPY", "PIE", "Q", "R", "S", "SIM", "T", "U", "W"] # NPY201 ignores the use of 'trapz' false alarm ignore = ["F405", "I001", "NPY201", "RET504", "RET505", "RET506", "RET507", "RUF100"] explicit-preview-rules = true