Unverified Commit 4c12b09e authored by Tanguy Le Carrour's avatar Tanguy Le Carrour Committed by Marius Bakke

gnu: Add python-flake8-pyi.

* gnu/packages/python-xyz.scm (python-flake8-pyi): New variable.
Signed-off-by: default avatarMarius Bakke <marius@gnu.org>
parent 5eebb4f4
......@@ -7989,6 +7989,36 @@ plugins that intend to support Flake8 2.x and 3.x simultaneously.")
(define-public python2-flake8-polyfill
(package-with-python2 python-flake8-polyfill))
(define-public python-flake8-pyi
(name "python-flake8-pyi")
(version "20.5.0")
(method url-fetch)
(uri (pypi-uri "flake8-pyi" version))
(build-system python-build-system)
`(("python-attrs" ,python-attrs)
("python-flake8" ,python-flake8)
("python-pyflakes" ,python-pyflakes)))
(home-page "https://github.com/ambv/flake8-pyi")
"Flake8 plugin that provides specializations for type hinting stub files")
"This package contains a plugin that provides specializations for
type hinting stub files, especially interesting for linting typeshed. It
adds the @file{.pyi} extension to the default value of the @code{--filename}
command-line argument to Flake8. This means stubs are linted by default with
this plugin enabled, without needing to explicitly list every file. It
modifies PyFlakes runs for @file{.pyi} files to defer checking type annotation
expressions after the entire file has been read. This enables support for
first-class forward references that stub files use.")
(license license:expat)))
(define-public python-mistune
(name "python-mistune")
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment