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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pysmells-1.0.11.tar.gz.

File metadata

  • Download URL: pysmells-1.0.11.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for pysmells-1.0.11.tar.gz
Algorithm Hash digest
SHA256 9983c545c1e4eb4a2b6023b05eaa8a4b589c245cde108b8a9a2f02b542ec1640
MD5 a560002c265503daec9437d50135565a
BLAKE2b-256 6dbaf7b4c9e2918aae69c3740c94fabcfbdbc8b904a47ae9dec2eeaa98c30f15

See more details on using hashes here.

File details

Details for the file pysmells-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: pysmells-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for pysmells-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 de6230817ad6f5e18287ac90d38266298be07846c1736fb9c79f361f30c6fd27
MD5 f76fa1883f6b4ac91e9e58769a1c416e
BLAKE2b-256 2fe80a5134f485b3e33bb5758d198349df7b3f1c2a0315f8b95f1423340ef38c

See more details on using hashes here.

Supported by

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