ruff/crates/ruff_workspace/src
Charlie Marsh 94727996e8
Respect runtime-required decorators on functions (#9317)
## Summary

This PR modifies the semantics of `runtime-evaluated-decorators` to
respect decorators on both classes _and_ functions. Historically, this
only respected classes, since the common use-case is (e.g.)
`pydantic.BaseModel` -- but functions are equally valid.

Closes https://github.com/astral-sh/ruff/issues/9312.

## Test Plan

`cargo test`
2023-12-29 22:14:53 -04:00
..
configuration.rs Add target_version to formatter options (#9220) 2023-12-21 04:05:58 +00:00
lib.rs Add most formatter options to ruff.toml / pyproject.toml (#7566) 2023-09-22 15:47:57 +00:00
options.rs Respect runtime-required decorators on functions (#9317) 2023-12-29 22:14:53 -04:00
options_base.rs Remove repeated and erroneous scoped settings headers in docs (#8670) 2023-11-14 05:44:30 +00:00
pyproject.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
resolver.rs Stop at the first resolved parent configuration (#8864) 2023-11-29 04:21:07 +00:00
settings.rs Add target_version to formatter options (#9220) 2023-12-21 04:05:58 +00:00