ruff/crates/ruff_python_ast
Tom Kuson 62f1ee08e7
[refurb] Implement single-item-membership-test (FURB171) (#7815)
## Summary

Implement
[`no-single-item-in`](https://github.com/dosisod/refurb/blob/master/refurb/checks/iterable/no_single_item_in.py)
as `single-item-membership-test` (`FURB171`).

Uses the helper function `generate_comparison` from the `pycodestyle`
implementations; this function should probably be moved, but I am not
sure where at the moment.

Update: moved it to `ruff_python_ast::helpers`.

Related to #1348.

## Test Plan

`cargo test`
2023-10-08 14:08:47 +00:00
..
src [refurb] Implement single-item-membership-test (FURB171) (#7815) 2023-10-08 14:08:47 +00:00
tests Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
Cargo.toml Implement our own small-integer optimization (#7584) 2023-09-25 15:13:21 +00:00