Skip to content

ruff check in outputfile_compiler breaks when proto field comments end in quote marks #671

Description

@michael-sayapin

Summary

ruff check in outputfile_compiler breaks when proto field comments end in quote marks

Reproduction Steps

message Test {
  // something, for example "bug"
  string what = 1;
}

Expected Results

It works.

Actual Results

Ruff errors out with "SyntaxError: Expected a statement" on the string that looks like """something, for example "bug"""".

System Information

n/a

Checklist

  • I have searched the issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have verified this issue occurs on the latest prelease of betterproto which can be installed using pip install -U --pre betterproto, if possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions