Skip to content

fix(ruff): modernize rules #551

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yajo
Copy link
Contributor

@yajo yajo commented Jul 11, 2025

Modern Ruff versions yield this warning when scanning a doodba project:

their counterparts in the `lint` section. Please update the following
options in `.ruff.toml`: - 'isort' -> 'lint.isort' - 'mccabe' ->
'lint.mccabe' - 'per-file-ignores' -> 'lint.per-file-ignores' ```

@moduon MT-10479

Modern Ruff versions yield this warning when scanning a doodba project:

  ``` warning: The top-level linter settings are deprecated in favour of
  their counterparts in the `lint` section. Please update the following
  options in `.ruff.toml`: - 'isort' -> 'lint.isort' - 'mccabe' ->
  'lint.mccabe' - 'per-file-ignores' -> 'lint.per-file-ignores' ```

@moduon MT-10479
@pedrobaeza
Copy link
Member

Is this compatible with old versions?

@yajo
Copy link
Contributor Author

yajo commented Jul 14, 2025

I'm not sure, TBH.

@pedrobaeza
Copy link
Member

Well, I think we should ensure the compatibility with both, as not everyone is updating regularly ruff, or if it's available for the used distribution.

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