Skip to content

Migrate ruff config to the latest format #57791

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 9, 2024
Merged

Conversation

tqa236
Copy link
Contributor

@tqa236 tqa236 commented Mar 9, 2024

Resolves these warnings (available if running ruff directly) and fix some formatting errors discovered in the new config that's arguably should be equivalent to the old one.

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'
  - 'typing-modules' -> 'lint.typing-modules'
  - 'unfixable' -> 'lint.unfixable'
  - 'per-file-ignores' -> 'lint.per-file-ignores'
warning: `PGH001` has been remapped to `S307`.

@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Mar 9, 2024
@mroeschke mroeschke added this to the 3.0 milestone Mar 9, 2024
@mroeschke mroeschke merged commit dc19148 into pandas-dev:main Mar 9, 2024
@mroeschke
Copy link
Member

Thanks @tqa236

@tqa236 tqa236 deleted the ruff-config branch March 17, 2024 07:56
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
* Migrate ruff config to the latest format

* Fix errors discovered by the new config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants