Sublime3 text can't ignore PEP8 formatting for Python - python

I installed Sublime for Python programming but I found that PEP8 error detection is pretty annoying and I couldn't get rid of it.
I tried this but it's not working:
It kept showing this:

Try to add "pep8": false,.
If it does not work, add "sublimelinter_disable":["python"], to disable python's inspections completely.
And you would like to look https://github.com/SublimeLinter/SublimeLinter-pep8

Related

My VSCode word wrapper width is too small. Word wrapping too soon

For some reason my word wrapping has gotten messed up in VSCode. The word wrap occurs after saving. I do like this feature but I need it to stop wrapping so soon. There is plenty of space left on the right side still. I have prettier installed and it is set to the default 80 line width. I have changed this and restarted VSCode and the problem remains the same. I have even disabled prettier and it is still doing this. I have also gone into the word wrapper for VSCode and ensured it was off. Can anyone tell me what is causing this and how to resolve it?
This...
should look more like this..
And in VSCode I have changed these things with no luck...
Also, I think this problem only exists in this current project. Maybe I installed a python extension causing this??
Maybe these...
This is a function of formatting. You can turn it off in settings.
Tips:
Pylance is the integration of Python and Jupyter Notebook extensions, both of which are official extensions of Microsoft. There is no problem keeping them. :)
The image below is located in the settings. This resolves my issue.
Also found here...
VS Code Python Formatting: Change max line-length with autopep8 / yapf / black

VS Code syntax highlighting Python f-strings

I've been using VS Code for Python for a while now, but after all this time I still haven't figured out how to syntax highlight my f-strings. I've seen screenshots of other people who have them highlighted properly, but mine look like this:
Is this something I have to manually change in my color scheme?
Can it output the correct result? In other words, f-string can work?
Have you tried to switch the color theme?
And can you open the Command Palette to execute the command of Developer: Inspect Editor Tokens and Scopes to get this:
Can you find the meta.fstring.python like the above picture?
This could be provided by the Built-in extension of Python Language Basic or MagicPython extension and so on. So could you disable all the python related extensions then only enable the Python and Built-in extension of Python Language Basic to make a try?
You can try changing the theme of VSCode. I usually use the Github theme and I can see proper syntax highlight. Also, make sure all the necessary extensions for python are installed.
Screenshot from VS Code

VS Code Python Syntax Highlighting Only Half Working

I've been using both VS Code and Sublime for a while now. I mostly do my python coding in Sublime and I have recently decided to try out VS Code. One issue though.
The syntax highlighting for python is not functioning in the manner I would expect. Here is a .py file opened in both VS Code and Sublime for comparison:
Sublime Text:
VS Code:
When comparing the VS Code syntax highlighting to that of Sublime, it appears to only function half correctly.
Tons of stuff that I would expect to receive some form of colored formatting such as function calls, function parameters etc all just appear as white text.
After looking at loads of VS Code python tutorials online, it would definitely seem something is wrong with my setup as everyone else seems to receive function calls/function paramters/etc syntax highlighting.
Troubleshooting progress so far:
I have the VS Code python extension installed.
I've tried uninstalling and reinstalling VS Code.
I've tried uninstalling and reinstalling Python extension.
I've tried installing the magicPython
extension.
Ensuring I have both python2 and python3 installed on my machine
Color theme is currently Dark+, however this behavior occurs with all
color themes.
Made sure the file ends in .py
I'm running on a Mac, if that's relevant.
Any help would be greatly appreciated. Thank you!
i think you just need to change your theme
check this one out https://github.com/sobolevn/dotfiles

vscode docstrings not appearing properly

I have no idea why I am experiencing this issue. In past projects (On a different computer with a different OS) I have had no issues displaying docstrings. When I write a docstring, it should show something like this.
Instead, my docstrings are not being formatted properly, and I am getting the following.
Any idea why this is happening and how to fix it? I am using VScode, and don't think anything needs to be installed to solve this. Thanks!
If you changed your language server that will shift how the docstrings get rendered (e.g. went from Jedi to MPLS or vice-versa). You can 👍 the issue tracking improving docstring support to help prioritize that work to try and handle this sort of thing.

How to get syntax highlighting for .enaml files in PyCharm?

I am trying to learn Enaml, which is an extension to the Python language that allows you to define hierarchical trees of objects used for graphical user interfaces.
Since enaml is a super-set of the Python language, its syntax can be different from Python's one and IDEs do not highlight it.
Is there any way to get enaml-syntax highlighting in PyCharm? Or maybe in some other IDE?
(I know that the package 'enaml-pygments' exists, but I have no idea how to make it work for automatic enaml-syntax highlighting in an IDE.)
I've added most of the keywords to this repo which you can import into PyCharm:
There are highlighters for a few editors in the Enaml repo. Maybe one of them can be used by PyCharm: https://github.com/nucleic/enaml/tree/master/tools
Today I found this settings menu that partially addresses the issue of adding any syntax to PyCharm:
https://blog.jetbrains.com/idea/2010/09/custom-file-types-in-intellij-idea/
Unfortunately it captures only the most simple features of a syntax.
I'm using Atom to work with Python/Enaml code. With the language-enaml package you get syntax highlighting plus some autoextension and docstring feature for Enaml (https://atom.io/packages/language-enaml). Add in git integration and packages like build-python to run you code from the editor and you have quite a nice IDE.
https://github.com/vahndi/pycharm-enaml-keywords
Open PyCharm
Go to File,
Import Settings...,
browse to the .jar file and click OK
Select All,
OK

Categories