-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "actual version 1 of correct package"
This reverts commit 6552228.
- Loading branch information
Joseph
committed
Jun 30, 2014
1 parent
6552228
commit 767a09f
Showing
3 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import pep8 | ||
import re | ||
|
||
__version__ = '1.0' | ||
|
||
DEBUGGER_REGEX = re.compile(r'(import i?pdb|i?pdb.set_trace())') | ||
|
||
def check_for_debugger(line_of_code): | ||
if pep8.noqa(line_of_code): | ||
return | ||
debug_match = DEBUGGER_REGEX.search(line_of_code) | ||
if debug_match: | ||
return debug_match.start(), 'T000 pdb/ipdb found.' | ||
|
||
check_for_debugger.name = name = 'flake8-debugger' | ||
check_for_debugger.version = __version__ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
from setuptools import setup | ||
|
||
|
||
def get_version(fname='flake8_print.py'): | ||
def get_version(fname='flake8_debugger.py'): | ||
with open(fname) as f: | ||
for line in f: | ||
if line.startswith('__version__'): | ||
|
@@ -20,20 +20,20 @@ def get_long_description(): | |
|
||
|
||
setup( | ||
name='flake8-print', | ||
name='flake8-debugger', | ||
version=get_version(), | ||
description="print statement checker plugin for flake8", # noqa | ||
description="pdb and ipdb statement checker plugin for flake8", # noqa | ||
long_description=get_long_description(), | ||
keywords='flake8 print', | ||
keywords='flake8 debugger ipdb pdb', | ||
author='Joseph Kahn', | ||
author_email='[email protected]', | ||
url='https://github.com/jbkahn/flake8-print', | ||
url='https://github.com/jbkahn/flake8-debugger', | ||
license='MIT', | ||
py_modules=['flake8_print'], | ||
py_modules=['flake8_debugger'], | ||
zip_safe=False, | ||
entry_points={ | ||
'flake8.extension': [ | ||
'flake8_print = flake8_print:check_for_print_statements', | ||
'flake8_debugger = flake8_debugger:check_for_debugger', | ||
], | ||
}, | ||
classifiers=[ | ||
|