summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpep8.py2
-rw-r--r--setup.py67
2 files changed, 36 insertions, 33 deletions
diff --git a/pep8.py b/pep8.py
index 66fe848..60fa8e0 100755
--- a/pep8.py
+++ b/pep8.py
@@ -108,6 +108,7 @@ try:
except NameError:
from sets import ImmutableSet as frozenset
+
DEFAULT_EXCLUDE = '.svn,CVS,.bzr,.hg,.git'
DEFAULT_IGNORE = 'E24'
MAX_LINE_LENGTH = 79
@@ -125,6 +126,7 @@ WHITESPACE_AROUND_NAMED_PARAMETER_REGEX = \
re.compile(r'[()]|\s=[^=]|[^=!<>]=\s')
LAMBDA_REGEX = re.compile(r'\blambda\b')
+
WHITESPACE = ' \t'
BINARY_OPERATORS = frozenset(['**=', '*=', '+=', '-=', '!=', '<>',
diff --git a/setup.py b/setup.py
index 8d79d58..2c7092d 100644
--- a/setup.py
+++ b/setup.py
@@ -5,37 +5,38 @@ long_description = '\n\n'.join([open('README.rst').read(),
open('CHANGES.txt').read(),
open('TODO.txt').read()])
-setup(name='pep8',
- version=version,
- description="Python style guide checker",
- long_description=long_description,
- keywords='pep8',
- author='Johann C. Rocholl',
- author_email='johann@rocholl.net',
- url='http://github.com/jcrocholl/pep8',
- license='Expat license',
- py_modules=['pep8'],
- namespace_packages=[],
- include_package_data=True,
- zip_safe=False,
- install_requires=[
- 'setuptools',
- # -*- Extra requirements: -*-
- ],
- entry_points={
- 'console_scripts': [
- 'pep8 = pep8:_main',
- ],
- },
- classifiers=[
- 'Development Status :: 5 - Production/Stable',
- 'Environment :: Console',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: MIT License',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python',
- 'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 3',
- 'Topic :: Software Development :: Libraries :: Python Modules',
- ],
+setup(
+ name='pep8',
+ version=version,
+ description="Python style guide checker",
+ long_description=long_description,
+ keywords='pep8',
+ author='Johann C. Rocholl',
+ author_email='johann@rocholl.net',
+ url='http://github.com/jcrocholl/pep8',
+ license='Expat license',
+ py_modules=['pep8'],
+ namespace_packages=[],
+ include_package_data=True,
+ zip_safe=False,
+ install_requires=[
+ 'setuptools',
+ # -*- Extra requirements: -*-
+ ],
+ entry_points={
+ 'console_scripts': [
+ 'pep8 = pep8:_main',
+ ],
+ },
+ classifiers=[
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Console',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: MIT License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 3',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ ],
)