Skip to content

Conversation

AlexWaygood
Copy link
Member

Fix this deprecation warning when running ruff on the repository directly:

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`:
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'unfixable' -> 'lint.unfixable'
  - 'isort' -> 'lint.isort'

Note that you don't see the deprecation warnings if you run ruff via pre-commit (only if you run ruff directly, e.g. via ruff .), since pre-commit swallows all output from a tool if the tool exits with code 0.

Copy link
Contributor

github-actions bot commented Feb 5, 2024

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JelleZijlstra JelleZijlstra merged commit ede0b20 into python:master Feb 5, 2024
@AlexWaygood AlexWaygood deleted the bump-ruff branch February 5, 2024 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants