mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
![]() ## Summary Add a configuration option to extend the list of names that can be accessed without triggering SLF001. Fixes issue #7018 ## Test Plan Manually tested by creating a python file (`test.py`): ```python def foo(obj): obj._meta ``` and a `ruff.toml` file: ```toml select = ["SLF"] [flake8-self] extend-ignore-names = ["_meta"] ``` Then running `cargo run -p ruff_cli -- check test.py --no-cache` (once with the `extend-ignore-names` line comment out) to see if the configuration option works. --------- Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |