Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/description/C1804.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# use-implicit-booleaness-not-comparison-to-string (C1804)

"%s" can be simplified to "%s", if it is striclty a string, as an empty
"%s" can be simplified to "%s", if it is strictly a string, as an empty
string is falsey Empty string are considered false in a boolean context.
Following this check blindly in weakly typed code base can create hard
to debug issues. If the value can be something else that is falsey but
Expand Down
2 changes: 1 addition & 1 deletion docs/description/E0108.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# duplicate-argument-name (E0108)

Duplicate argument name %s in function definition Duplicate argument
Duplicate argument name %r in function definition Duplicate argument
names in function definitions are syntax errors.
5 changes: 5 additions & 0 deletions docs/description/E0245.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# declare-non-slot (E0245)

No such name %r in \_\_slots\_\_ Raised when a type annotation on a
class is absent from the list of names in \_\_slots\_\_, and
\_\_slots\_\_ does not contain a \_\_dict\_\_ entry.
5 changes: 2 additions & 3 deletions docs/description/E0710.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# raising-non-exception (E0710)

Raising a new style class which doesn't inherit from BaseException Used
when a new style class which doesn't inherit from BaseException is
raised.
Raising a class which doesn't inherit from BaseException Used when a
class which doesn't inherit from BaseException is raised.
8 changes: 3 additions & 5 deletions docs/description/R0917.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# too-many-positional (R0917)
# too-many-positional-arguments (R0917)

Too many positional arguments in a function call. Will be implemented in
https://github.com/pylint- dev/pylint/issues/9099,msgid/symbol pair
reserved for compatibility with ruff, see
https://github.com/astral-sh/ruff/issues/8946.
Too many positional arguments (%s/%s) Used when a function has too many
positional arguments.
2 changes: 1 addition & 1 deletion docs/description/W0212.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

Access to a protected member %s of a client class Used when a protected
member (i.e. class member with a name beginning with an underscore) is
access outside the class or a descendant of the class where it's
accessed outside the class or a descendant of the class where it's
defined.
5 changes: 5 additions & 0 deletions docs/description/W2603.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# using-exception-groups-in-unsupported-version (W2603)

Exception groups are not supported by all versions included in the
py-version setting Used when the py-version set by the user is lower
than 3.11 and pylint encounters except\* or ExceptionGroup\`.
5 changes: 5 additions & 0 deletions docs/description/W2604.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# using-generic-type-syntax-in-unsupported-version (W2604)

Generic type syntax (PEP 695) is not supported by all versions included
in the py-version setting Used when the py-version set by the user is
lower than 3.12 and pylint encounters generic type syntax.
6 changes: 6 additions & 0 deletions docs/description/W2605.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# using-assignment-expression-in-unsupported-version (W2605)

Assignment expression is not supported by all versions included in the
py-version setting Used when the py-version set by the user is lower
than 3.8 and pylint encounters an assignment expression (walrus)
operator.
5 changes: 5 additions & 0 deletions docs/description/W2606.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# using-positional-only-args-in-unsupported-version (W2606)

Positional-only arguments are not supported by all versions included in
the py-version setting Used when the py-version set by the user is lower
than 3.8 and pylint encounters positional-only arguments.
45 changes: 35 additions & 10 deletions docs/description/description.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{
"patternId": "E0108",
"title": "duplicate-argument-name (E0108)",
"description": "Duplicate argument name %s in function definition Duplicate argument names in function definitions are syntax errors."
"description": "Duplicate argument name %r in function definition Duplicate argument names in function definitions are syntax errors."
},
{
"patternId": "E0101",
Expand Down Expand Up @@ -396,6 +396,11 @@
"title": "no-self-argument (E0213)",
"description": "Method %r should have \"self\" as first argument Used when a method has an attribute different the \"self\" as first argument. This is considered as an error since this is a so common convention that you shouldn't break it!"
},
{
"patternId": "E0245",
"title": "declare-non-slot (E0245)",
"description": "No such name %r in __slots__ Raised when a type annotation on a class is absent from the list of names in __slots__, and __slots__ does not contain a __dict__ entry."
},
{
"patternId": "E0302",
"title": "unexpected-special-method-signature (E0302)",
Expand Down Expand Up @@ -479,7 +484,7 @@
{
"patternId": "W0212",
"title": "protected-access (W0212)",
"description": "Access to a protected member %s of a client class Used when a protected member (i.e. class member with a name beginning with an underscore) is access outside the class or a descendant of the class where it's defined."
"description": "Access to a protected member %s of a client class Used when a protected member (i.e. class member with a name beginning with an underscore) is accessed outside the class or a descendant of the class where it's defined."
},
{
"patternId": "W0201",
Expand Down Expand Up @@ -639,8 +644,8 @@
},
{
"patternId": "R0917",
"title": "too-many-positional (R0917)",
"description": "Too many positional arguments in a function call. Will be implemented in https://github.com/pylint- dev/pylint/issues/9099,msgid/symbol pair reserved for compatibility with ruff, see https://github.com/astral-sh/ruff/issues/8946."
"title": "too-many-positional-arguments (R0917)",
"description": "Too many positional arguments (%s/%s) Used when a function has too many positional arguments."
},
{
"patternId": "R0904",
Expand Down Expand Up @@ -685,7 +690,7 @@
{
"patternId": "E0710",
"title": "raising-non-exception (E0710)",
"description": "Raising a new style class which doesn't inherit from BaseException Used when a new style class which doesn't inherit from BaseException is raised."
"description": "Raising a class which doesn't inherit from BaseException Used when a class which doesn't inherit from BaseException is raised."
},
{
"patternId": "E0704",
Expand Down Expand Up @@ -1138,16 +1143,16 @@
"title": "useless-return (R1711)",
"description": "Useless return at end of function or method Emitted when a single \"return\" or \"return None\" statement is found at the end of function or method definition. This statement can safely be removed because Python will implicitly return None"
},
{
"patternId": "C1804",
"title": "use-implicit-booleaness-not-comparison-to-string (C1804)",
"description": "\"%s\" can be simplified to \"%s\", if it is striclty a string, as an empty string is falsey Empty string are considered false in a boolean context. Following this check blindly in weakly typed code base can create hard to debug issues. If the value can be something else that is falsey but not a string (for example None, an empty sequence, or 0) the code will not be equivalent."
},
{
"patternId": "C1803",
"title": "use-implicit-booleaness-not-comparison (C1803)",
"description": "\"%s\" can be simplified to \"%s\", if it is strictly a sequence, as an empty %s is falsey Empty sequences are considered false in a boolean context. Following this check blindly in weakly typed code base can create hard to debug issues. If the value can be something else that is falsey but not a sequence (for example None, an empty string, or 0) the code will not be equivalent."
},
{
"patternId": "C1804",
"title": "use-implicit-booleaness-not-comparison-to-string (C1804)",
"description": "\"%s\" can be simplified to \"%s\", if it is strictly a string, as an empty string is falsey Empty string are considered false in a boolean context. Following this check blindly in weakly typed code base can create hard to debug issues. If the value can be something else that is falsey but not a string (for example None, an empty sequence, or 0) the code will not be equivalent."
},
{
"patternId": "C1805",
"title": "use-implicit-booleaness-not-comparison-to-zero (C1805)",
Expand Down Expand Up @@ -1603,11 +1608,31 @@
"title": "unnecessary-ellipsis (W2301)",
"description": "Unnecessary ellipsis constant Used when the ellipsis constant is encountered and can be avoided. A line of code consisting of an ellipsis is unnecessary if there is a docstring on the preceding line or if there is a statement in the same scope."
},
{
"patternId": "W2605",
"title": "using-assignment-expression-in-unsupported-version (W2605)",
"description": "Assignment expression is not supported by all versions included in the py-version setting Used when the py-version set by the user is lower than 3.8 and pylint encounters an assignment expression (walrus) operator."
},
{
"patternId": "W2603",
"title": "using-exception-groups-in-unsupported-version (W2603)",
"description": "Exception groups are not supported by all versions included in the py-version setting Used when the py-version set by the user is lower than 3.11 and pylint encounters except* or ExceptionGroup`."
},
{
"patternId": "W2601",
"title": "using-f-string-in-unsupported-version (W2601)",
"description": "F-strings are not supported by all versions included in the py-version setting Used when the py-version set by the user is lower than 3.6 and pylint encounters an f-string."
},
{
"patternId": "W2604",
"title": "using-generic-type-syntax-in-unsupported-version (W2604)",
"description": "Generic type syntax (PEP 695) is not supported by all versions included in the py-version setting Used when the py-version set by the user is lower than 3.12 and pylint encounters generic type syntax."
},
{
"patternId": "W2606",
"title": "using-positional-only-args-in-unsupported-version (W2606)",
"description": "Positional-only arguments are not supported by all versions included in the py-version setting Used when the py-version set by the user is lower than 3.8 and pylint encounters positional-only arguments."
},
{
"patternId": "W2602",
"title": "using-final-decorator-in-unsupported-version (W2602)",
Expand Down
36 changes: 33 additions & 3 deletions docs/patterns.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pylintpython3",
"version": "3.2.6",
"version": "3.3.1",
"patterns": [
{
"patternId": "E0103",
Expand Down Expand Up @@ -472,6 +472,12 @@
"category": "CodeStyle",
"enabled": false
},
{
"patternId": "E0245",
"level": "Error",
"category": "CodeStyle",
"enabled": false
},
{
"patternId": "E0302",
"level": "Error",
Expand Down Expand Up @@ -1361,13 +1367,13 @@
"enabled": false
},
{
"patternId": "C1804",
"patternId": "C1803",
"level": "Info",
"category": "CodeStyle",
"enabled": false
},
{
"patternId": "C1803",
"patternId": "C1804",
"level": "Info",
"category": "CodeStyle",
"enabled": false
Expand Down Expand Up @@ -1918,12 +1924,36 @@
"category": "CodeStyle",
"enabled": false
},
{
"patternId": "W2605",
"level": "Warning",
"category": "CodeStyle",
"enabled": false
},
{
"patternId": "W2603",
"level": "Warning",
"category": "CodeStyle",
"enabled": false
},
{
"patternId": "W2601",
"level": "Warning",
"category": "CodeStyle",
"enabled": false
},
{
"patternId": "W2604",
"level": "Warning",
"category": "CodeStyle",
"enabled": false
},
{
"patternId": "W2606",
"level": "Warning",
"category": "CodeStyle",
"enabled": false
},
{
"patternId": "W2602",
"level": "Warning",
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
pylint==3.2.6
Django==5.1
pylint==3.3.1
Django==5.1.1
pylint-django==2.5.5
Flask==3.0.3
pylint-flask==0.6
pylint-common==0.2.5
pylint-celery==0.3
SaltPyLint==2024.2.5
jsonpickle==3.0.3
jsonpickle==3.3.0
asttokens==2.4.1
pylint-beam==0.1.2
pylint-pytest==1.1.7
pylint-pytest==1.1.8