danielgtaylor / danielgtaylor/python-betterproto
ruff check in outputfile_compiler breaks when proto field comments end in quote marks
- Lingua principale
- Python
- Stelle
- 1.8k
- Fork
- 234
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Summary
ruff check in outputfile_compiler breaks when proto field comments end in quote marks
### Reproduction Steps
```proto
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
- [x] I have searched the issues for duplicates.
- [x] I have shown the entire traceback, if possible.
- [x] I have verified this issue occurs on the latest prelease of betterproto which can be installed using `pip install -U --pre betterproto`, if possible.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.