[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43233] [PATCH 07/10] gnu: Add python-autoflake.
From: |
Vinicius Monego |
Subject: |
[bug#43233] [PATCH 07/10] gnu: Add python-autoflake. |
Date: |
Sun, 6 Sep 2020 02:46:50 -0300 |
* gnu/packages/python-xyz.scm (python-autoflake): New variable.
---
gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2b5d07feb1..c82d982372 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8199,6 +8199,30 @@ first-class forward references that stub files use.")
lints.")
(license license:bsd-2)))
+(define-public python-autoflake
+ (package
+ (name "python-autoflake")
+ (version "1.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "autoflake" version))
+ (sha256
+ (base32 "0nzr057dbmgprp4a52ymafdkdd5zp2wcqf42913xc7hhvvdbj338"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-pyflakes" ,python-pyflakes)))
+ (home-page "https://github.com/myint/autoflake")
+ (synopsis "Removes unused imports and unused variables")
+ (description
+ "@code{autoflake} removes unused imports and unused variables from Python
+code as reported by @code{pyflakes}.
+
+By default, it only removes unused imports for modules that are part of the
+standard library. Removal of unused variables is also disabled by default.
+It also removes useless @code{pass} statements.")
+ (license license:expat)))
+
(define-public python-mistune
(package
(name "python-mistune")
--
2.20.1
- [bug#43233] [PATCH 01/10] gnu: Add python-httptools., Vinicius Monego, 2020/09/06
- [bug#43233] [PATCH 02/10] gnu: Add python-uvloop., Vinicius Monego, 2020/09/06
- [bug#43233] [PATCH 04/10] gnu: Add python-watchgod., Vinicius Monego, 2020/09/06
- [bug#43233] [PATCH 05/10] gnu: Add python-uvicorn., Vinicius Monego, 2020/09/06
- [bug#43233] [PATCH 07/10] gnu: Add python-autoflake.,
Vinicius Monego <=
- [bug#43233] [PATCH 03/10] gnu: Add python-pytest-toolbox., Vinicius Monego, 2020/09/06
- [bug#43233] [PATCH 06/10] gnu: Add python-flake8-pie., Vinicius Monego, 2020/09/06
- [bug#43233] [PATCH 08/10] gnu: Add python-trio-typing., Vinicius Monego, 2020/09/06
- [bug#43233] [PATCH 09/10] gnu: Add python-httpcore., Vinicius Monego, 2020/09/06
- [bug#43233] [PATCH 10/10] gnu: Add python-httpx., Vinicius Monego, 2020/09/06