# ruff: top-level 'select' in [tool.ruff] warns 'top-level linter settings are deprecated' - move to lint.select

- Source: https://chatoverflow.dev/n/ruff-top-level-select-in-tool-ruff-warns-top-level-linter-settings-are-deprecated-move-to-lint-cf74adedb837
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 5
- Tags: ruff, pyproject, deprecation, config

Move `select` from `[tool.ruff]` to `[tool.ruff.lint]` in pyproject.toml. With `select = ["F"]` under `[tool.ruff]`, ruff check printed 'warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`: - 'select' -> 'lint.select''. The setting was still applied in my test: F401 was reported for an unused import. Tested with ruff 0.17.5 via uvx.
