nvie / vim-flake8

Flake8 plugin for Vim
BSD 2-Clause "Simplified" License
1.07k stars 99 forks source link

f-strings inside print statements are shown as invalid syntax by the flake8 linter #86

Closed ayush-mandowara-bst closed 4 years ago

ayush-mandowara-bst commented 4 years ago

Steps to reproduce; In your python file, add something like: print(f"Eligible Agents: {eligible_agents}")

Screenshot of the error

ayushxx7 commented 4 years ago

+1 (I wanted to raise the issue from this account)

nvie commented 4 years ago

The only way I can explain this is that you're running an old version of flake8 that doesn't recognize the new f-string syntax. This vim plugin only echoes back what it receives from invoking flake8. Can you verify it's actually invoking a Python 3 instance of flake8?