ruff/crates/ruff_workspace/src
Dhruv Manilawala 869a9543e4
Root exclusions in the server to project root (#16043)
## Summary

fixes: #16041 

## Test Plan

Using the [project](https://github.com/bwcc-clan/polebot) in the linked
issue:

Notice how the project "polebot" is in the "play" directory which is
included in the `exclude` setting as:

```toml
exclude = ["play"]
```

**Before this fix**

```
DEBUG ruff:worker:0 ruff_server::resolve: Ignored path via `exclude`: /private/tmp/ruff-test/play/polebot/src/utils/log_tools.py
```

**After this fix**

```
DEBUG ruff:worker:2 ruff_server::resolve: Included path via `include`: /private/tmp/ruff-test/play/polebot/src/utils/log_tools.py
```

I also updated the same project to remove the "play" directory from the
`exclude` setting and made sure that anything under the `polebot/play`
directory is included:

```
DEBUG  ruff:worker:4 ruff_server::resolve: Included path via `include`: /private/tmp/ruff-test/play/polebot/play/test.py
```

And, excluded when I add the directory back:

```
DEBUG  ruff:worker:2 ruff_server::resolve: Ignored path via `exclude`: /private/tmp/ruff-test/play/polebot/play/test.py
```
2025-02-10 04:57:14 +00:00
..
configuration.rs [`flake8-builtins`] Make strict module name comparison optional (`A005`) (#15951) 2025-02-09 19:33:03 -05:00
lib.rs Add most formatter options to `ruff.toml` / `pyproject.toml` (#7566) 2023-09-22 15:47:57 +00:00
options.rs [`flake8-builtins`] Make strict module name comparison optional (`A005`) (#15951) 2025-02-09 19:33:03 -05:00
options_base.rs Better error message when `--config` is given a table key and a non-inline-table value (#15266) 2025-01-06 13:20:28 +00:00
pyproject.rs Fix configuration inheritance for configurations specified in the LSP settings (#13285) 2024-09-09 19:46:39 +01:00
resolver.rs Root exclusions in the server to project root (#16043) 2025-02-10 04:57:14 +00:00
settings.rs Add a subcommand to generate dependency graphs (#13402) 2024-09-19 21:06:32 -04:00