Skip to content

Experimental Flake8 plugin to identify missing or incomplete argument annotations.

License

Notifications You must be signed in to change notification settings

python-formate/flake8-missing-annotations

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:

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

About

Experimental Flake8 plugin to identify missing or incomplete argument annotations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project