ruff/crates/ruff_linter
Charlie Marsh 456d6a2fb2
Consider with blocks as single-item branches (#12311)
## Summary

Ensures that, e.g., the following is not considered a
redefinition-without-use:

```python
import contextlib

foo = None
with contextlib.suppress(ImportError):
    from some_module import foo
```

Closes https://github.com/astral-sh/ruff/issues/12309.
2024-07-13 15:22:17 -04:00
..
resources Consider with blocks as single-item branches (#12311) 2024-07-13 15:22:17 -04:00
src Consider with blocks as single-item branches (#12311) 2024-07-13 15:22:17 -04:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Explicitly add schemars to ruff_python_ast Cargo.toml (#12275) 2024-07-11 06:46:34 +00:00