
Settings | Ruff - Astral
Whether to enforce exclude and extend-exclude patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded.
`exclude` under ` [tool.ruff.lint]` does not exclude directory · Issue ...
Apr 11, 2024 · From the ruff docs, in Settings/lint/exclude: Exclusions are based on globs, and can be either: Single-path patterns, like .mypy_cache (to exclude any directory named .mypy_cache in the …
Ignore specific rules in specific directory with Ruff
Dec 18, 2023 · You can use Ruff's per-file-ignores and specify individual files, or select a directory tree with a wildcard (star). You can ignore a "letter class" by specifying only the letter.
Ruff - Programming Study Note
Apr 2, 2024 · In locating the “closest” pyproject.toml file for a given path, Ruff ignores any pyproject.toml files that lack a [tool.ruff] section.
Configuring Ruff | Ruff - Astral
When passed a path on the command-line, Ruff will automatically discover all Python files in that path, taking into account the exclude and extend-exclude settings in each directory's configuration file. …
Ruff does not respect configurations to exclude certain directories
Jul 18, 2023 · Here, Ruff won't respect the exclude (and extend-exclude) option when an explicit path is passed to it. This is intentional and matches the behavior of black. The solution is to pass the --force …
format|lint.exclude does not exclude directories #8267
Oct 27, 2023 · I have to spend some more time on this to fully understand the semantics of exclude. I assumed it matches the gitignore syntax but aren't so sure about it anymore.
Exclude failure for tool.ruff[lint|format] #8241 - GitHub
Oct 25, 2023 · The reported problem is that test-bad-syntax contains a pyproject.toml with a syntax error and ruff tries to load it when discovering the python files of the project when using lint.exclude but it …
Confusing note on `exclude` option in `tool.ruff.format ... - GitHub
Oct 28, 2023 · Note that you'll typically want to use extend-exclude to modify the excluded paths. However, no such option is available for the formatter so one might confuse the …
EXCLUDE Definition & Meaning - Merriam-Webster
The meaning of EXCLUDE is to prevent or restrict the entrance of. How to use exclude in a sentence.