Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Quality Assurance and Testing

    importchecker 1.1

    Download button

    No screenshots available
    Downloads: 109  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jan-Wijbrand Kolman | More programs
    ZPL / FREE
    January 10th, 2012, 17:22 GMT [view history]
    ROOT / Programming / Quality Assurance and Testing

     Read user reviews (0)  Refer to a friend  Subscribe

    importchecker description

    Finds unused imports in Python modules

    importchecker is a command-line utility to find unused imports in Python modules.

    Its output is "grep-like" (and thus "emacs-friendly"), reporting both the module's filenames and line numbers where names are imported that are not acually used in the module.

    Importchecker will not modify any of the source files. Whether the import needs to be removed is left to the judgement of the developer.

    Installation

    The importchecker commandline utility can be installed using the easy_install command:

     sudo easy_install importchecker

    The command can then be invoked with:

     importchecker /path/to/a/source/tree

    Buildout

    Projects that make use of zc.buildout for development might find the following buildout.cfg. snippet useful for using the importchecker on the developed codebase:

    [buildout]
    ...
    parts = importchecker ...
    ...

    [importchecker]
    recipe = zc.recipe.egg
    eggs = importchecker
    arguments = "${buildout:directory}/src"



    Product's homepage

    Requirements:

    · Python

    Limitations:

    · One source tree path argument at the time can be passed to the command line utility.
    · Command line argument parsing is rather naive.

    What's New in This Release: [ read full changelog ]

    · Applied provided by wosc enabling running the import checker on individual python modules not just directories.
    · Report the absolute path for modules when needed, relative paths (relative to the current working directory, that is) when possible.

      


    TAGS:

    imports modules | import checker | Python modules | Python | modules | importer

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM