Skip to content

Commit

Permalink
Remove scoring code from CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
suchow committed Apr 9, 2016
1 parent cbf6d29 commit 8fe2474
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions proselint/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
)
import subprocess
import sys
from .score import score as lintscore
from .version import __version__


Expand Down Expand Up @@ -79,24 +78,19 @@ def print_errors(filename, errors, output_json=False, compact=False):
@click.version_option(__version__, '--version', '-v', message='%(version)s')
@click.option('--debug', '-d', is_flag=True)
@click.option('--clean', '-c', is_flag=True)
@click.option('--score', '-s', is_flag=True)
@click.option('--json', '-j', 'output_json', is_flag=True)
@click.option('--time', '-t', is_flag=True)
@click.option('--demo', is_flag=True)
@click.option('--compact', is_flag=True)
@click.argument('paths', nargs=-1, type=click.Path())
@close_cache_shelves_after
def proselint(paths=None, version=None, clean=None, debug=None, score=None,
def proselint(paths=None, version=None, clean=None, debug=None,
output_json=None, time=None, demo=None, compact=None):
"""Define the linter command line API."""
if time:
click.echo(timing_test())
return

if score:
click.echo(lintscore())
return

# In debug or clean mode, delete cache & *.pyc files before running.
if debug or clean:
clear_cache()
Expand Down

0 comments on commit 8fe2474

Please sign in to comment.