this post was submitted on 24 Jun 2023
22 points (95.8% liked)

Python

6287 readers
7 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

Sometimes unused class or function manages to slip into code base. Static code checkers like ruff, flake8 does not have rules for detecting such globally unused code.

I tried using vulture, but it has too many false positives to have it as part of CI/CD pipeline.

I have tried to implement my own, more reliable check for global deadcode detection.

Please let me know what you think about it.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] marwanco 1 points 10 months ago

Hello, Im confuse how to use deadcode, installed it with pip install deadcode In Spyder console typed 'deadcode' or 'deadcode .', result: NameError: name 'deadcode' is not defined I want to remove unused variable. Thanks