Skip to main content

Wrapper for profanity checker that can work on python services/scripts, similar to linters (e.g. pylint)

Project description

# pro-checker

[![Build Status](https://travis-ci.com/ozychhi/prof-checker.svg?branch=master)](https://travis-ci.com/ozychhi/prof-checker)


## Prof-checker

This is wrapper over [profanity-check](https://github.com/vzhou842/profanity-check/) by [vzhou842](https://github.com/vzhou842)

`prof-checker` is meant to work the same way as other python linters work. Depending on how big your codebase
is, it might take quite a bit of time to run this. I would not recommend running it on every PR.


## Installation

```
$ pip install prof_checker
```

## Rough benchmarks

As this is wrapper around `profanity-check` the performance greatly depends on the package. These benchmarks
are only rought estimates.

| Files | LoC | Time (ms)
| --------|-------------------|---------------------
| 500 | 250K | 7230
| 22 | 4.3K | 1200
| 70 | 20.6K | 1510

## Usage

For help
```
prof_checker -h
```

To check `test.py`:
```
prof_checker test.py
```

To check all files in directory:
```
find . -name \*.py | xargs prof_checker
```

To override threshold:
```
prof_checker -P 0.5 test.py
```

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

prof-checker-1.0.0.tar.gz (3.0 kB view hashes)

Uploaded Source

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