Skip to content

Latest commit

 

History

History
102 lines (70 loc) · 3.88 KB

README.rst

File metadata and controls

102 lines (70 loc) · 3.88 KB

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:

def foo(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.

Tests Linux Test Status Windows Test Status macOS Test Status
Activity GitHub last commit GitHub commits since tagged version Maintenance
QA CodeFactor Grade Flake8 Status mypy status
Other License GitHub top language Requirements 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