parameters: (self)
docstring: Runs the command.
docstring_summary: Runs the command.
docstring_tokens: Runs the command .
function: def run(self):
          """Runs the command."""
          # perform the various tests
          if self.metadata:
              self.check_metadata()
          if self.restructuredtext:
              if HAS_DOCUTILS:
                  self.check_restructuredtext()
              elif self.strict:
                  raise DistutilsSetupError('The docutils package is needed.')
  
          # let's raise an error in strict mode, if we have at least
          # one warning
          if self.strict and self._warnings > 0:
              raise DistutilsSetupError('Please correct your package.')
function_tokens: def run ( self ) : # perform the various tests if self . metadata : self . check_metadata ( ) if self . restructuredtext : if HAS_DOCUTILS : self . check_restructuredtext ( ) elif self . strict : raise DistutilsSetupError ( 'The docutils package is needed.' ) # let's raise an error in strict mode, if we have at least # one warning if self . strict and self . _warnings > 0 : raise DistutilsSetupError ( 'Please correct your package.' )