Skip to content

Commit e343590

Browse files
committed
pylint: ignore possibly/used-before-assignment as it is prone to FP
It does no control flow analysis, and upgrading to pylint 3.2.0 produced many incorrect warnings. Also ignore contextmanager-generator-missing-cleanup for now. It has FP when there is no code after a yield (and thus no cleanup needs to be handled), which is what we do. Currently under discussion upstream: pylint-dev/pylint#9625
1 parent 29a62ff commit e343590

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.pylintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ disable=
1717
cell-var-from-loop,
1818
consider-using-f-string,
1919
consider-using-with,
20+
contextmanager-generator-missing-cleanup,
2021
cyclic-import,
2122
deprecated-decorator,
2223
duplicate-code,
@@ -47,6 +48,7 @@ disable=
4748
not-an-iterable,
4849
not-callable,
4950
pointless-string-statement,
51+
possibly-used-before-assignment,
5052
protected-access,
5153
raise-missing-from,
5254
redeclared-assigned-name,
@@ -75,6 +77,7 @@ disable=
7577
unsubscriptable-object,
7678
unused-argument,
7779
unused-variable,
80+
used-before-assignment,
7881
useless-super-delegation,
7982
wrong-import-order,
8083
wrong-import-position,

0 commit comments

Comments
 (0)