ruff/crates/ruff_linter
Brent Westbrook b00f68a23c
[`ruff`] Allow more `field` calls from `attrs` (`RUF009`) (#19021)
Summary
--

Closes #19014 by identifying more `field` functions from `attrs`. We
already detected these when imported from `attrs` but not the `attr`
module from the same package. These functions are identical to the
`attrs` versions:

```pycon
>>> import attrs, attr
>>> attrs.field is attr.field
True
>>> attrs.Factory is attr.Factory
True
>>>
```

Test Plan
--

Regression tests based on the issue
2025-07-03 10:29:55 -04:00
..
resources [`ruff`] Allow more `field` calls from `attrs` (`RUF009`) (#19021) 2025-07-03 10:29:55 -04:00
src [`ruff`] Allow more `field` calls from `attrs` (`RUF009`) (#19021) 2025-07-03 10:29:55 -04:00
Cargo.toml Convert `OldDiagnostic::noqa_code` to an `Option<String>` (#18946) 2025-06-27 11:36:55 -04:00