aws / aws/git-remote-codecommit

Indentation bug - Python

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
289
Fork
40
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I pushed a python script to Code-commit and made a PR. Reviewers saw my code with an error in the last line, the indentation. So when I check my code it was fine, the problem was the indentation on the EOF they were watching on the PR. Let me explain this with an example:
```python
# What you passed to code-commit
for i in table_:
if i:
a='hello'
else:
a='bye' # EOF
```

```python
## What code-commit show you
for i in table_:
if i:
a='hello'
else:
a='bye' # codecommit EOF
```
The short way solution was pushing code with this "uncomfortable" enter in eof:
```python
## What code-commit show you
for i in table_:
if i:
a='hello'
else:
a='bye'
# new EOF
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Il report non nomina alcun file, test o punto di ingresso. Riproduci la modifica dell'indentazione usando gli snippet Python forniti in una pull request di CodeCommit, quindi individua il percorso git-remote-codecommit responsabile dell'EOF visualizzato; il lavoro è completato quando la riga finale indentata rimane all'interno del blocco else senza richiedere una riga vuota aggiuntiva.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.