atom-community / atom-community/ide-python

How to configure autopep8?

Ouverte
#135 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
238
Forks
40
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi, I am trying to use autopep8 but it doesn't work as I was expecting. When doing `Code Format: Format Code` some parts of my code are formatted and others aren't. I tried the autopep8 command in CLI and it formatted a lot more my code which is what I was looking for. I also tried using atom-beautify and it also did a lot more formatting.

So, I would like to know:
1) Why isn't ide-python formatting as much as autopep8 on CLI or atom-beautify?
2) Is there a configuration that is preventing ide-python to do this?
3) Is there a configuration file I should change (or create) to have the formatting I would like?

I am fairly new to autopep8 and I haven't used much this package but I think there should be a little more documentation on these topics as someone new to them. I feel a little lost on what steps to take to have this package working as I'd like.

Notes:
`python -m pyls --help` shows the desired output
I'm on macOS 10.13.6
Atom version 1.29.0
When seeing a Python file in Atom, pycodestyle shows a lot of errors that aren't corrected by the autopep8 setting.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par comparer le comportement de `Code Format: Format Code` avec la CLI autopep8 et la sortie de `python -m pyls --help`. Documentez la configuration qui contrôle le formatage, la manière de la configurer et pourquoi des erreurs pycodestyle peuvent subsister ; le travail sera considéré comme terminé lorsqu’un nouvel arrivant pourra suivre les étapes documentées pour obtenir le formatage attendu.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
documentation, tooling
Type d'issue
Documentation
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.