dev-python/autoflake - 2.3.1 (guru)

Search

Install

Install this version:

emerge -a =dev-python/autoflake-2.3.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/autoflake-2.3.1

Or alternatively:

emerge --autounmask-write -a =dev-python/autoflake-2.3.1

Package Information

Description:
Removes unused imports and unused variables from Python code
Homepage:
https://github.com/PyCQA/autoflake/ https://pypi.org/project/autoflake/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2.3.1 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8

PYTHON_COMPAT=( python3_12 )
DISTUTILS_USE_PEP517=hatchling

inherit distutils-r1 pypi

DESCRIPTION="Removes unused imports and unused variables from Python code"
HOMEPAGE="https://github.com/PyCQA/autoflake/ https://pypi.org/project/autoflake/"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND=">=dev-python/tomli-2.0.1
		 >=dev-python/pyflakes-3.0.0"

distutils_enable_tests unittest

src_prepare() {
	sed -Ei -e '/include/,/]/ { /(test_.*|LICENSE|README)/d }' pyproject.toml || die "Sed failed :-("
	default
}

python_test() {
	# unit test
	eunittest -p "test_autoflake.py"
}

Inherited Eclasses

Dependencies

RDEPEND

>=dev-python/tomli-2.0.1
		 >=dev-python/pyflakes-3.0.0