Skip to content

Commit

Permalink
MNT: Enable flake8-pie rules in ruff
Browse files Browse the repository at this point in the history
These catch some nice simplifications in general, though seems like we
only had one violation.
  • Loading branch information
dopplershift committed Aug 29, 2024
1 parent cb8fffb commit 539cbff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Advanced_Sounding_With_Complex_Layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 539cbff

Please sign in to comment.