plugin-python icon indicating copy to clipboard operation
plugin-python copied to clipboard

Prettier Python Plugin

Results 19 plugin-python issues
Sort by recently updated
recently updated
newest added

Found this issue in my codebase. Input: ```py deck, created = Deck.objects.get_or_create_from_id_list( decklist, hero_id=player._hero.card_id, game_type=game_type, classify_archetype=True ) ``` Output: ```py ( deck, created, ) = Deck.objects.get_or_create_from_id_list(decklist, hero_id=player._hero.card_id, game_type=game_type, classify_archetype=True) ```...

Input: ```py TEMPLATES = [{ "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [ "/some/path/to/some/example/directory", ], "APP_DIRS": True, "OPTIONS": { "context_processors": [ "django.template.context_processors.debug", "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", ], }, }] ``` Output: ```py TEMPLATES = [...

The whitespace handling in PEP 8 is a little different. Two cases stand out to me as unhandled. ## Two spaces before inline comments Current: ```python foo() # This is...

See PEP-8: https://www.python.org/dev/peps/pep-0008/#comments

enhancement
good first issue
style

this: ```py raise NotImplementedError( 'The SimpleListFilter.lookups() method must be overridden to ' 'return a list of tuples (value, verbose value).' ) ``` gets converted to ```py raise NotImplementedError('The SimpleListFilter.lookups() method...

bug

This: ```python combination = {**first_dictionary, "x": 1, "y": 2} ``` gets changed to: ```python combination = {: first_dictionary, "x": 1, "y": 2} ```

bug

There are a number of cases in Python where the token-to-AST mapping is very clearly non-injective, where multiple different-looking statements are syntactically equivalent. We should think about how to handle...

https://pypi.python.org/pypi/astor Wanted to let people know I'm working on this. Don't have anything ready to PR yet. The ideal is that if this integration is possible, then it saves having...

Could shell out to run https://pypi.python.org/pypi/pep8 on the stdin stream?