معرفی شرکت ها


dead-1.5.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

dead simple python dead code detection
ویژگی مقدار
سیستم عامل -
نام فایل dead-1.5.0
نام dead
نسخه کتابخانه 1.5.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Anthony Sottile
ایمیل نویسنده asottile@umich.edu
آدرس صفحه اصلی https://github.com/asottile/dead
آدرس اینترنتی https://pypi.org/project/dead/
مجوز MIT
[![Build Status](https://dev.azure.com/asottile/asottile/_apis/build/status/asottile.dead?branchName=main)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=32&branchName=main) [![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/32/main.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=32&branchName=main) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/dead/main.svg)](https://results.pre-commit.ci/latest/github/asottile/dead/main) dead ==== dead simple python dead code detection ## installation `pip install dead` ## cli Consult the help for the latest usage: ```console $ dead --help usage: dead [-h] [--files FILES] [--exclude EXCLUDE] [--tests TESTS] optional arguments: -h, --help show this help message and exit --files FILES regex for file inclusion, default: '' --exclude EXCLUDE regex for file exclusion, default '^$' --tests TESTS regex to mark files as tests, default '(^|/)(tests?|testing)/' ``` run the `dead` utility from the root of a git repository. ## as a pre-commit hook See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions Sample `.pre-commit-config.yaml`: ```yaml - repo: https://github.com/asottile/dead rev: v1.5.0 hooks: - id: dead ``` ### how it works 1. find all files in a repository using `git ls-files` and filtering: - only include files matched by the `--files` regex - exclude files matched by the `--exclude` regex - only include files identified as `python` by [`identify`](https://github.com/chriskuehl/identify) - classify test files by the `--tests` regex 1. ast parse each file - search for definitions and references 1. report things which do not have references ### false positives I wrote this in ~15 minutes on an airplane, it's far from perfect but often finds things. Here's a few things it's not good at: - functions which implement an interface are often marked as unused - metaclass magic is often marked as unused (enums, model classes, etc.) ### suppressing `dead` The `# dead: disable` comment will tell `dead` to ignore any line which has reportedly dead code. ### is this project dead? _maybe._


نیازمندی

مقدار نام
- identify


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl dead-1.5.0:

    pip install dead-1.5.0.whl


نصب پکیج tar.gz dead-1.5.0:

    pip install dead-1.5.0.tar.gz