def validate(self):
            """
            Validation rules that don't require any extra context go here.
            """
            if self.executor:
                raise ConfigValidationError(
                    "Option 'executor' cannot be set on a ref task"
                )
            if self.capture_stdout:
                raise ConfigValidationError(
                    "Option 'capture_stdout' cannot be set on a ref task"
                )

            Validation rules that don't require any extra context go here.
            
poethepoet/task/ref.py