Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
remove last remnants of pep8 and pyflakes (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
stlava authored Dec 16, 2021
1 parent c7317f3 commit c9fb299
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,6 @@
DIR = os.path.dirname(os.path.realpath(__file__))


class PyflakesCommand(Command):
description = 'Pyflakes Checks'
user_options = []

def initialize_options(self):
pass

def finalize_options(self):
pass

def run(self):
# Don't import the pyflakes code until now because setup.py needs to be
# able to install Pyflakes if its missing. This localizes the import to
# only after the setuptools code has run and verified everything is
# installed.
from pyflakes import api
from pyflakes import reporter

# Run the Pyflakes check against our package and check its output
val = api.checkRecursive([PACKAGE], reporter._makeDefaultReporter())
if val > 0:
sys.exit('ERROR: Pyflakes failed with exit code %d' % val)


setup(
name=PACKAGE,
version=__version__,
Expand Down Expand Up @@ -78,9 +54,5 @@ def run(self):
'Programming Language :: Python',
'Operating System :: POSIX',
'Natural Language :: English',
],
cmdclass={
'pep8': Pep8Command,
'pyflakes': PyflakesCommand,
},
]
)

0 comments on commit c9fb299

Please sign in to comment.