Skip to main content

Pysmells is a tool that identifies when something doesn't 'smell right' in a python code, checking for programming errors, inconsistencies and programming style violations. It will then generate a report detailing the results of the analysis. Pysmells is based on the following Python Enhancement Proposals (PEPs): PEP 8, PEP 257 and PEP 20.

Project description

Pysmells

Pysmells is a tool that identifies when something doesn't 'smell right' in a python code, checking for programming errors, inconsistencies and programming style violations. It will then generate a report detailing the results of the analysis. Pysmells is based on the following Python Enhancement Proposals (PEPs): PEP 8, PEP 257 and PEP 20.

Installation

You can install pysmells using pip:

pip install pysmells

Clone this repository:

bash git clone https://github.com/pysmells/pysmells.git

Usage

To use pysmells, navigate to the directory containing the Python files you want to analyze and run the following command:

Arguments:

-p or --project: The project directory containing the subdirectories with Python files to analyze. -s or --subdirs: The list of subdirectories in the project directory, each representing a software. -csv or --csv_output: The path and file name for the CSV output report.

python pysmells.py -p /.../test -s Program1 Program2 -csv /.../report.csv

Dependencies

pysmells requires the following packages:

  • tabulate
  • pylint

These dependencies will be automatically installed when you install pysmells using pip.

License

pysmells is licensed under the MIT License. See the LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysmells-1.0.11.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

pysmells-1.0.11-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page