Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bump ruff to 0.2.0 #16870

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Bump ruff to 0.2.0 #16870

merged 1 commit into from
Feb 5, 2024

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants