linter-mypy

January 3, 2020 ยท View on GitHub

Build Status linter-mypy_package linter-mypy_BugTracker

An Atom Linter plugin which displays warnings related to Python optional static type as defined in PEP 484 using mypy.

Screen shot demo

Installation

  1. Install python package mypy, run:

    python3 -m pip install -U mypy typed-ast
    
  2. Install atom package, run:

    apm install linter-mypy
    

Available settings

SettingDefault Values
Lint triggerLint on file save
Path to the executable of Pythonpython3
PYTHONPATH
Mypy IncrementalTrue
Mypy Incremental Cache Folder Path
Mypy Notify Internal ErrorTrue
Ignore File path Regex
Mypy Path
Warn UnreachableTrue
No Implicit ReexportTrue
Mypy Config File
Follow Importssilent
Namespace PackagesTrue
Disallow Untyped CallsTrue
Disallow Untyped DefsTrue
Disallow Untyped GlobalsTrue
Disallow RedefinitionTrue
Strict EqualityTrue
Disallow Incomplete DefsTrue
Check Untyped DefsTrue
Warn Incomplete StubTrue
Disallow Untyped DecoratorsTrue
Warn Redundant CastsTrue
Warn No ReturnTrue
Warn Return AnyTrue
Disallow Subclassing AnyTrue
Disallow Any UnimportedTrue
Disallow Any ExprTrue
Disallow Any DecoratedTrue
Disallow Any ExplicitTrue
Disallow Any GenericsTrue
Warn Unused IgnoresTrue
Warn Unused ConfigsTrue
Warn Missing ImportsTrue
Strict OptionalTrue
No Implicit OptionalTrue