-
Notifications
You must be signed in to change notification settings - Fork 1.1k
pyproject.toml: Add ruff.lint prefixes to format settings. #1059
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
Conversation
adf3020 to
b0a30e5
Compare
| "unix-ffi", | ||
| ] | ||
| line-length = 99 | ||
| target-version = "py38" # enable use of walrus operator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumped to 3.8 to support the walrus operator which is supported and used.
invalid-syntax: Cannot use named assignment expression (`:=`) on Python 3.7 (syntax was added in Python 3.8)
--> micropython/bluetooth/aioble/aioble/peripheral.py:137:20
|
135 | (16, _ADV_TYPE_UUID128_COMPLETE),
136 | ):
137 | if uuids := [bytes(uuid) for uuid in services if len(bytes(uuid)) == uuid_len]:
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
138 | resp_data = _append(adv_data, resp_data, code, b"".join(uuids))
I think this would need the same change on the micropython/micropython repo as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would need the same change on the micropython/micropython repo as well
Yes, that's fair enough.
- Update to python 3.8 syntax. - Ignore import not at top of module warnings. - Exclude common SDK folders. - Exclude cpydiff test with intentional error. Also see: micropython/micropython-lib#1059 Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
Changes are: - Reorganize lint settings to new sections. - Align ignore rules with micropython/micropython repo. - Update to python38 syntax to enable `:=` operator. Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
|
Thanks for updating. |
ruff ruff 0.11.6 is warming about the settings.