def invoke(self, args="<STR_LIT>", target=None):
run_target = self.tempdir if target is None elseos.path.join(self.tempdir, target)<EOL>cmd = shlex.split("<STR_LIT>"<EOL>.format(self.script_name, run_target, args),<EOL>posix=False)<EOL>p = subprocess.Popen(cmd,<EOL>stdout=subprocess.PIPE,<EOL>stderr=subprocess.PIPE)<EOL>out, err = p.communicate()<EOL>return self.Result(out=out.decode('<STR_LIT:utf-8>'),<EOL>err=err.decode('<STR_LIT:utf-8>'),<EOL>code=p.returncode)<EOL>
Run pydocstyle on the environment base folder with the given args.

        If `target` is not None, will run pydocstyle on `target` instead of
        the environment base folder.