diff options
author | omarandlorraine <64254276+omarandlorraine@users.noreply.github.com> | 2022-05-04 22:54:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 23:54:09 +0200 |
commit | 6486514dcce0ae8c4b18e1fc26570173ffeef59e (patch) | |
tree | 34195bbd5fe6e53469fb9c77eeb0a68fd2566564 /tests/functional/u/unnecessary | |
parent | 1c87f3f0781e1eda638432da2fd80d3510e52ffe (diff) | |
download | pylint-git-6486514dcce0ae8c4b18e1fc26570173ffeef59e.tar.gz |
Add `comparison-of-constants` checker (#6413)
Co-authored-by: Sam M W <smw@alertergroup.co.uk>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to 'tests/functional/u/unnecessary')
-rw-r--r-- | tests/functional/u/unnecessary/unnecessary_ellipsis.py | 2 | ||||
-rw-r--r-- | tests/functional/u/unnecessary/unnecessary_not.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/u/unnecessary/unnecessary_ellipsis.py b/tests/functional/u/unnecessary/unnecessary_ellipsis.py index e34de754b..c46fd323a 100644 --- a/tests/functional/u/unnecessary/unnecessary_ellipsis.py +++ b/tests/functional/u/unnecessary/unnecessary_ellipsis.py @@ -1,6 +1,6 @@ """Emit a warning when the ellipsis constant is used and can be avoided""" -# pylint: disable=missing-docstring, too-few-public-methods, invalid-name, unused-argument +# pylint: disable=missing-docstring, too-few-public-methods, invalid-name, unused-argument, comparison-of-constants from typing import List, overload, Union diff --git a/tests/functional/u/unnecessary/unnecessary_not.py b/tests/functional/u/unnecessary/unnecessary_not.py index 97acecd73..6b6b51369 100644 --- a/tests/functional/u/unnecessary/unnecessary_not.py +++ b/tests/functional/u/unnecessary/unnecessary_not.py @@ -1,7 +1,7 @@ """Check exceeding negations in boolean expressions trigger warnings""" # pylint: disable=singleton-comparison,too-many-branches,too-few-public-methods,undefined-variable -# pylint: disable=literal-comparison, comparison-with-itself, useless-object-inheritance +# pylint: disable=literal-comparison, comparison-with-itself, useless-object-inheritance, comparison-of-constants def unneeded_not(): """This is not ok """ |