ruff/crates/ruff_workspace/src
Jaap Roes 7971e0b0ee
Add `extend-ignore-names` for `flake8-self` (#7194)
## 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>
2023-09-07 13:41:22 +00:00
..
configuration.rs Add hidden `--preview` / `--no-preview` options to `ruff check` (#7009) 2023-08-31 09:51:59 -05:00
lib.rs Move `Configuration` to `ruff_workspace` crate (#6920) 2023-08-28 06:21:35 +00:00
options.rs Add `extend-ignore-names` for `flake8-self` (#7194) 2023-09-07 13:41:22 +00:00
options_base.rs Move `Configuration` to `ruff_workspace` crate (#6920) 2023-08-28 06:21:35 +00:00
pyproject.rs Unify line size settings between ruff and the formatter (#6873) 2023-08-28 06:44:56 +00:00
resolver.rs Move `Configuration` to `ruff_workspace` crate (#6920) 2023-08-28 06:21:35 +00:00