You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/tools/trezor-pylint-plugin
matejcik f0d6539d3d
feat: custom Pylint plugin
6 months ago
..
.gitignore feat: custom Pylint plugin 6 months ago
README.md feat: custom Pylint plugin 6 months ago
pyproject.toml feat: custom Pylint plugin 6 months ago
trezor_pylint_plugin.py feat: custom Pylint plugin 6 months ago

README.md

Custom Pylint rule checker

For now, it catches the following problem (async-awaitable-return):

async def show_foo() -> Awaitable[None]:
    return show_something("foo")

This is almost certainly a mistake -- the caller would need to say await (await show_foo()) to actually show the foo.

The function should be one of:

async def show_foo() -> None:
    return await show_something("foo")

# ... or ...

def show_foo() -> Awaitable[None]:
    return show_something("foo")