Hi Bruno,

On 2/25/24 3:57 AM, Bruno Haible wrote:
> The style warnings about "!= None" in pycodestyle and/or pylint are
> relativized by this warning in Python itself:
> 
>   >>> '' != None
>   True
>   >>> '' is not None
>   <stdin>:1: SyntaxWarning: "is not" with a literal. Did you mean "!="?
>   True

Interesting. I'm not too picky about the convention that we use. Your
convention seems fine with me. It would be nice to use Eglot with
Emacs as it is helpful for finding bugs, but currently it is spammed
with warnings about comparison. This makes it nearly impossible to
find actual warnings when the exist. I need to do some research on how
to best fix that on a per-project basis. I would hope that it just
involves a simple configuration file that takes the options we have at
the top of gnulib-tool.py.

Collin


Reply via email to