docformatter fix does not consider parameters for added newlines
Los mantenedores suelen responder en 1 día
@AtharvRG ya está trabajando en esto.
Desde el 31/10/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Reproduce the formatting with the configuration and command linked in setup.cfg and Makefile using docformatter v1.7.8, using the _publish_shapefile_request docstring as the example. Locate the logic that splits the summary and description and then inserts or indents parameter lines. Done means the description is followed by another newline and the :param entries retain their original indentation.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Given a sentence detected with a ., which gets split into summary/description (as it should), the result doesn't seem to check correctly if the newlines it introduces cause an invalid structure by placing the description right on top of some parameter description.
For some reason, it picks to indent the parameters, which is incorrect.
It should instead add another newline and leave the parameters as they were.
@geoserver_response_handling
def _publish_shapefile_request(self,
*,
workspace_name: str,
datastore_name: str,
filename: str,
) -> requests.Response:
"""
- Request to publish a shapefile in Geoserver. Does so by creating a `Feature type` in Geoserver.
+ Request to publish a shapefile in Geoserver.
- :param workspace_name: Workspace where file will be published
- :param datastore_name: Datastore where file will be published
- :param filename: Name of the shapefile (with no extensions)
- :returns: Response object
+ Does so by creating a `Feature type` in Geoserver.
+ :param workspace_name: Workspace where file will be published
+ :param datastore_name: Datastore where file will be published
+ :param filename: Name of the shapefile (with no extensions)
+ :returns: Response object
"""
...
using https://github.com/PyCQA/docformatter/releases/tag/v1.7.8
- Lenguaje dominante
- Python
- Estrellas
- 600
- Forks
- 107
- Merge medio
- 22 h 15 min
- PR fusionados (30 d)
- 12
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PyCQA/docformatter
-
`--docstring-length` removes blank line after docstrings it doesn't format (ping-pong with ruff format / Black)Posiblemente ocupada @RClaudiuM la tomó hace 1 día. Abiertofresh
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
PyCQA/docformatter#420 ·
Los mantenedores suelen responder en 1 día
-
fresh
Dificultad 3/5 1-2 días Aptitud para principiantes 66/100
PyCQA/docformatter#414 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
BUG: Inconsistent behavior between `docformatter` and `black`Quizá libre de nuevo @AtharvRG la tomó hace 25 días y no hay ningún pull request abierto. Abiertofresh
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
PyCQA/docformatter#399 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
1.7.8 crashes with a tokenize ValueError on a multi-line f-string inside parenthesesQuizá libre de nuevo @adityaanikam la tomó hace 106 días y no hay ningún pull request abierto. AbiertoC: convention P: bug U: high
Dificultad 3/5 1-2 días Aptitud para principiantes 74/100
PyCQA/docformatter#367 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
1.7.8 rewrites the contents of a non-docstring triple-quoted string, silently changing its valueAbiertoC: convention P: bug U: high
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
PyCQA/docformatter#366 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de PyCQA/docformatter
Issues similares
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
NatLabRockies/openstudio-mcp#286 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
intersystems/ipm#1338 ·
Los mantenedores suelen responder en 1 día
-
separate_packages splits imports from the same explicitly configured packagePosiblemente ocupada @rahul05ranjan la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
The v0-through-v1 path derives ShutdownDuration its own way, silently overriding a user's definitionAbiertov1
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día