astroid icon indicating copy to clipboard operation
astroid copied to clipboard

Fix ruff deprecation warnings for top-level linter settings

Open correctmost opened this issue 1 year ago • 1 comments

Description

Before this change:

$ ruff check . --exclude=tests/testdata
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`:
  - 'fixable' -> 'lint.fixable'
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'unfixable' -> 'lint.unfixable'
  - 'per-file-ignores' -> 'lint.per-file-ignores'
All checks passed!

After this change:

$ ruff check . --exclude=tests/testdata
All checks passed!

Reference: https://docs.astral.sh/ruff/settings

Type of Changes

Type
:hammer: Refactoring

correctmost avatar May 11 '24 22:05 correctmost

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.78%. Comparing base (2c38c02) to head (f2d0d61).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2430   +/-   ##
=======================================
  Coverage   92.78%   92.78%           
=======================================
  Files          94       94           
  Lines       11098    11098           
=======================================
  Hits        10297    10297           
  Misses        801      801           
Flag Coverage Δ
linux 92.59% <ø> (ø)
pypy 92.78% <ø> (ø)
windows 92.68% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

codecov[bot] avatar May 11 '24 22:05 codecov[bot]