docformatter fix does not consider parameters for added newlines
I maintainer di solito rispondono entro 1 giorno
@AtharvRG ci sta già lavorando.
Dal 31/10/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 600
- Fork
- 107
- Merge medio
- 22h 15m
- PR unite (30g)
- 12
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PyCQA/docformatter
-
`--docstring-length` removes blank line after docstrings it doesn't format (ping-pong with ruff format / Black)Forse già presa @RClaudiuM l’ha presa 1 giorno fa. Apertafresh
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
PyCQA/docformatter#420 ·
I maintainer di solito rispondono entro 1 giorno
-
fresh
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
PyCQA/docformatter#414 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
BUG: Inconsistent behavior between `docformatter` and `black`Forse di nuovo libera @AtharvRG l’ha presa 25 giorni fa e non c’è nessuna pull request aperta. Apertafresh
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
PyCQA/docformatter#399 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
1.7.8 crashes with a tokenize ValueError on a multi-line f-string inside parenthesesForse di nuovo libera @adityaanikam l’ha presa 106 giorni fa e non c’è nessuna pull request aperta. ApertaC: convention P: bug U: high
Difficoltà 3/5 1-2 giorni Idoneità per principianti 74/100
PyCQA/docformatter#367 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
1.7.8 rewrites the contents of a non-docstring triple-quoted string, silently changing its valueApertaC: convention P: bug U: high
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
PyCQA/docformatter#366 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PyCQA/docformatter
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
NatLabRockies/openstudio-mcp#286 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
intersystems/ipm#1338 ·
I maintainer di solito rispondono entro 1 giorno
-
separate_packages splits imports from the same explicitly configured packageForse già presa @rahul05ranjan l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
The v0-through-v1 path derives ShutdownDuration its own way, silently overriding a user's definitionApertav1
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno