You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this makes linting go crazy as it's obviously not "normal" Python code, despite being accepted happily by MicroPython.
Describe the solution you'd like
I have moved such functions into their own file (e.g. foo_asm.py) and have then added the following to settings.json in VS Code:
I'm proposing that this approach is adopted as a convention and that the above JSON is included in the settings.json file created by micropy-cli when initialising a new project.
Describe alternatives you've considered
It's also possible to exclude files using a comment:
# pylint: skip-file
and it's possible to just disable linting for an assembly method:
# pylint: disable=E,W,C,R
however, both approaches require you to add the comments in explicitly, remember the syntax (or find somewhere to copy and paste it from) and requires knowledge of pylint's workings. A standardised file-naming convention supported by micropy-cli would remove those obstacles.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When writing code in assembler such as the following:
this makes linting go crazy as it's obviously not "normal" Python code, despite being accepted happily by MicroPython.
Describe the solution you'd like
I have moved such functions into their own file (e.g.
foo_asm.py
) and have then added the following tosettings.json
in VS Code:This makes pylint a lot quieter!
I'm proposing that this approach is adopted as a convention and that the above JSON is included in the
settings.json
file created by micropy-cli when initialising a new project.Describe alternatives you've considered
It's also possible to exclude files using a comment:
and it's possible to just disable linting for an assembly method:
however, both approaches require you to add the comments in explicitly, remember the syntax (or find somewhere to copy and paste it from) and requires knowledge of pylint's workings. A standardised file-naming convention supported by micropy-cli would remove those obstacles.
The text was updated successfully, but these errors were encountered: