mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
[numpy
] Update NPY201
to include exception deprecations (#12065)
Hi! This PR updates `NPY201` rule to address https://github.com/astral-sh/ruff/issues/12034 and partially https://github.com/numpy/numpy/issues/26800.
This commit is contained in:
parent
5bef2b0361
commit
59ea94ce88
4 changed files with 209 additions and 1 deletions
|
@ -90,7 +90,7 @@ pub fn test_snippet(contents: &str, settings: &LinterSettings) -> Vec<Message> {
|
|||
}
|
||||
|
||||
thread_local! {
|
||||
static MAX_ITERATIONS: std::cell::Cell<usize> = const { std::cell::Cell::new(10) };
|
||||
static MAX_ITERATIONS: std::cell::Cell<usize> = const { std::cell::Cell::new(12) };
|
||||
}
|
||||
|
||||
pub fn set_max_iterations(max: usize) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue