danielgtaylor / danielgtaylor/python-betterproto
ruff check in outputfile_compiler breaks when proto field comments end in quote marks
- Lenguaje dominante
- Python
- Estrellas
- 1.8k
- Forks
- 234
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### 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.
Guía de contribución
Línea de trabajo
Comienza localizando la ruta de código de outputfile_compiler y reproduciendo el problema con el fragmento de proto proporcionado. Verifica que la salida generada que contiene un comentario de campo que termina en comillas pase ruff check sin un SyntaxError.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100