Skip to content

Improve .pyi files support #1268

@sobolevn

Description

@sobolevn

Currently, we have a lot of rules that are not very aligned with .pyi files.

Here are some of them:

  • ... usage as a placeholder
  • complexity rules like number of arguments, methods, etc (we cannot control things like it in annotations)

And probably others as well.

What we need to do here is ignoring this violations when filename has .pyi extension.
And better docs about this case.

Related: https://github.com/dry-python/returns/blob/master/setup.cfg#L50

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions