Skip to content

Commit

Permalink
Revert "actual version 1 of correct package"
Browse files Browse the repository at this point in the history
This reverts commit 6552228.
  • Loading branch information
Joseph committed Jun 30, 2014
1 parent 6552228 commit 767a09f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
16 changes: 16 additions & 0 deletions flake8_debugger.py
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__
16 changes: 0 additions & 16 deletions flake8_print.py

This file was deleted.

14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__'):
Expand All @@ -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=[
Expand Down

0 comments on commit 767a09f

Please sign in to comment.