Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37838116
en ru br
ALT Linux repos
S:2.4-alt1.1

Group :: Development/Python3
RPM: python3-module-vulture

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define  modulename vulture

%def_with check

Name:    python3-module-%modulename
Version: 2.4
Release: alt1.1

Summary: Find dead Python code
License: MIT
Group:   Development/Python3
URL:     https://github.com/jendrikseipp/vulture

Packager: Grigory Ustinov <grenka at altlinux.org>

BuildRequires(pre): rpm-build-python3

%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-pytest-cov
BuildRequires: python3-module-toml
%endif

BuildArch: noarch

Source:  %name-%version.tar

%add_python3_self_prov_path %buildroot%python3_sitelibdir/%modulename/whitelists/whitelist_utils.py


%description
Vulture finds unused classes, functions and variables in your code.
This helps you cleanup and find errors in your programs. If you run it
on both your library and test suite you can find untested code.
Due to Python's dynamic nature, static code analyzers like vulture
are likely to miss some dead code. Also, code that is only called
implicitly may be reported as unused. Nonetheless, vulture can be a
very helpful tool for higher code quality.

%prep
%setup

%build
%python3_build

%install
%python3_install

%check
py.test3 -v tests

%files
%_bindir/*
%python3_sitelibdir/%modulename/
%python3_sitelibdir/*.egg-info
%doc *.md

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin