Skip to content

Repository files navigation

flake8-missing-annotations

Experimental Flake8 plugin to identify missing or incomplete argument annotations.

This plugin identifies functions like this, where one or more annotations is missing:

deffoo(a, b, c: int):
pass

For functions whose names start with test_, it ignores common pytest fixtures which have no easy annotation (e.g. monkeypatch, capsys). It also ignores missing return types for those functions, since the return type is almost always unimportant.

See sco1/flake8-annotations for a plugin with a broader scope than this one.

TestsLinux Test StatusWindows Test StatusmacOS Test Status
ActivityGitHub last commitGitHub commits since tagged versionMaintenance
QACodeFactor GradeFlake8 Statusmypy status
OtherLicenseGitHub top languageRequirements Status

Installation

flake8-missing-annotations can be installed from GitHub.

To install with pip:

$ python -m pip install git+https://github.com/python-formate/flake8-missing-annotations

About

Experimental Flake8 plugin to identify missing or incomplete argument annotations.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages