SatelliteQE / nailgun

Why use a hammer when you can use a nailgun.
GNU General Public License v3.0
46 stars 83 forks source link

[6.13.z] Fix ruff deprecation warnings #1223

Closed Satellite-QE closed 1 month ago

Satellite-QE commented 1 month ago

Cherrypick of PR: https://github.com/SatelliteQE/nailgun/pull/1212

[!IMPORTANT] https://github.com/SatelliteQE/nailgun/pull/1083 needs to go in first

Fixing:

$ ruff check .
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'
  - 'flake8-pytest-style' -> 'lint.flake8-pytest-style'
  - 'isort' -> 'lint.isort'
  - 'mccabe' -> 'lint.mccabe'
  - 'per-file-ignores' -> 'lint.per-file-ignores'
warning: `PGH001` has been remapped to `S307`.
warning: `TRY200` has been remapped to `B904`.

I removed PGH001 as S307 is in the select section already