Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Internal pylama doesn't support f-strings #89

Open
prurph opened this issue Jan 21, 2018 · 6 comments
Open

Internal pylama doesn't support f-strings #89

prurph opened this issue Jan 21, 2018 · 6 comments
Labels

Comments

@prurph
Copy link

prurph commented Jan 21, 2018

It seems like the version of pylama used by linter-pylama doesn't support f-strings, e.g. `f"string {interpolation}".

image

@naoliden
Copy link

I have the same issue. And also, it doesn't support variable annotations e.g.:

screen shot 2018-02-23 at 17 09 08

or

screen shot 2018-02-23 at 17 06 19

I think it lacks support for python 3.6 syntax. Is there any way to fix this?

@Arcanemagus
Copy link
Member

Arcanemagus commented Feb 23, 2018

It looks like there is a "Pylama Version" setting that defaults to internal. Changing that to external will allow the usage of regular pylama 😕.

@gmist Issues like this are exactly why I don't like maintaining bundled versions of tools in other providers.

@gmist
Copy link
Member

gmist commented Feb 23, 2018

The problem is not in bundled versions of pylama, but in the default Python2 interpreter. In this case it does not matter, it will be a regular pylama or bundled... Just need to specify the right interpreter version, like

img-2018-02-23-23-32-33

voilà

img-2018-02-23-23-31-42

@naoliden
Copy link

naoliden commented Feb 23, 2018

I am fairly new to all this, what do you mean @Arcanemagus ?
setting pylama to external means that I have to set the path to somewhere where I would have installed a different version of pylama? why is that better?

@gmist 's solution worked perfectly, I just set the path to where I have python 3.6
Thanks a lot!

@awang-argoai
Copy link

@gmist @Norman123123 Sorry I am new to pylama, where is this pylama config file to set the interpreter?

@wjandrea
Copy link
Contributor

@awang-argoai Edit → Preferences → Packages → linter-pylama → Interpreter

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants