Skip to content

Commit

Permalink
MNT: Ignore NPY201
Browse files Browse the repository at this point in the history
This is currently giving a false alarm about our use of `trapz`. Ignore
it for now, since we're about to be running on numpy 2 itself and we can
catch those issues with the test suite.
  • Loading branch information
dopplershift committed Jul 8, 2024
1 parent 8dc0afb commit dec880d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ 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"]
ignore = ["F405", "I001", "RET504", "RET505", "RET506", "RET507", "RUF100"]
# NPY201 ignores the use of 'trapz' false alarm
ignore = ["F405", "I001", "NPY201", "RET504", "RET505", "RET506", "RET507", "RUF100"]
explicit-preview-rules = true

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit dec880d

Please sign in to comment.