vscode pycodestyle linter

165 views
Skip to first unread message

davida...@gmail.com

unread,
Aug 24, 2022, 4:41:40 PM8/24/22
to sage-devel
Hello everybody,

Recently, the pycodestyle linter as been enabled by default in the vscode setting file (I think in the ticket #33739). While I'm not opposed to this as it helps me following good coding conventions, many python files are now blood red of warnings, which I find a bit distracting. Here's an example among many others:

vscode.jpg

Many of those errors are E3 or E5 type. Of course I could deactivate the linter but this would change the file .vscode/setting.json which is included in the git repo so it's not ideal.

I was wondering if there was a solution to this (maybe by tuning down the linter or simply ignore the setting file)? 

David A.

Matthias Koeppe

unread,
Aug 24, 2022, 4:56:07 PM8/24/22
to sage-devel
It would make sense to configure it in the same way as we do in src/tox.ini (see section testenv:pycodestyle-minimal). https://github.com/sagemath/sage/blob/develop/src/tox.ini#L92

If you want to work on this, could you open at ticket please?
 

davida...@gmail.com

unread,
Aug 24, 2022, 6:17:59 PM8/24/22
to sage-devel
>  If you want to work on this, could you open at ticket please?

Of course! This is now: https://trac.sagemath.org/ticket/34425 

Reply all
Reply to author
Forward
0 new messages