Skip to content

Conversation

@Josverl
Copy link
Contributor

@Josverl Josverl commented Nov 13, 2025

ruff ruff 0.11.6 is warming about the settings.

 ruff format 
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'
  - 'mccabe' -> 'lint.mccabe'
  - 'pylint' -> 'lint.pylint'
  - 'per-file-ignores' -> 'lint.per-file-ignores'

"unix-ffi",
]
select = [
lint.select = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this and the change below, maybe change the heading on line 1 to [tool.ruff.lint]? That matches the main MicroPython repo's settings.


[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 61
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following the main MicroPython repo, this could move into the above section as:

mccabe.max-complexity = 40

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