[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42465] [PATCH v3 8/9] gnu: Add python-flake8-pyi.
From: |
Tanguy Le Carrour |
Subject: |
[bug#42465] [PATCH v3 8/9] gnu: Add python-flake8-pyi. |
Date: |
Mon, 27 Jul 2020 10:00:50 +0200 |
* gnu/packages/python-xyz.scm (python-flake8-pyi): New variable.
---
gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7015c20b4e..db470d3440 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -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
+ (package
+ (name "python-flake8-pyi")
+ (version "20.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "flake8-pyi" version))
+ (sha256
+ (base32
+ "1zpq4s9kp8w95pccmhhyyx1ff2zhnidcf1zb3xs46lzcx9plvnzk"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-attrs" ,python-attrs)
+ ("python-flake8" ,python-flake8)
+ ("python-pyflakes" ,python-pyflakes)))
+ (home-page "https://github.com/ambv/flake8-pyi")
+ (synopsis
+ "Flake8 plugin that provides specializations for type hinting stub
files")
+ (description
+ "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
(package
(name "python-mistune")
--
2.27.0
- [bug#42465] [PATCH v2 03/10] gnu: Add python-mypy-extensions., (continued)
- [bug#42465] [PATCH v2 03/10] gnu: Add python-mypy-extensions., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v2 05/10] gnu: Add python-libcst., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v2 09/10] gnu: Add python-flake8-pyi., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v2 06/10] gnu: Add python-lark-parser., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v2 10/10] gnu: Add python-mypy., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v2 07/10] gnu: Add python-hypothesmith., Tanguy Le Carrour, 2020/07/22
- [bug#42465] [PATCH v3 1/9] gnu: Add python-mypy-extensions., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 2/9] gnu: Add python-typing-inspect., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 3/9] gnu: Add python-hypothesis-5.23., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 4/9] gnu: Add python-libcst., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 8/9] gnu: Add python-flake8-pyi.,
Tanguy Le Carrour <=
- [bug#42465] [PATCH v3 9/9] gnu: Add python-mypy., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 6/9] gnu: Add python-hypothesmith., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 5/9] gnu: Add python-lark-parser., Tanguy Le Carrour, 2020/07/27
- [bug#42465] [PATCH v3 7/9] gnu: Add python-flake8-bugbear., Tanguy Le Carrour, 2020/07/27