Skip to content

Commit e5b9687

Browse files
Merge pull request #284 from codacy/bump-pylint-v4
Update Pylint 4.0.5
1 parent 51fad06 commit e5b9687

File tree

13 files changed

+1211
-1169
lines changed

13 files changed

+1211
-1169
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ __pycache__
1616

1717
#Ignore vscode AI rules
1818
.github/copilot-instructions.md
19+
20+
21+
#Ignore vscode AI rules
22+
.github/instructions/codacy.instructions.md

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.13-alpine3.22
1+
FROM python:3.14-alpine3.23
22
COPY requirements.txt ./
33
RUN pip3 install --no-cache-dir -r requirements.txt
44
COPY docs /docs

docs/description/E1145.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Async Context Manager With Regular With (E1145)
2+
3+
Context manager '%s' is async and should be used with 'async with'. Used
4+
when an async context manager is used with a regular 'with' statement
5+
instead of 'async with'.

docs/description/R0133.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Comparison Of Constants (R0133)
22

3-
Comparison between constants: '%s %s %s' has a constant value When two
3+
Comparison between constants: "%s %s %s" has a constant value When two
44
literals are compared with each other the result is a constant. Using
55
the constant directly is both easier to read and more performant.
66
Initializing 'True' and 'False' this way is not required since Python

docs/description/R1705.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# No Else Return (R1705)
22

33
Unnecessary "%s" after "return", %s Used in order to highlight an
4-
unnecessary block of code following an if containing a return statement.
5-
As such, it will warn when it encounters an else following a chain of
6-
ifs, all of them containing a return statement.
4+
unnecessary block of code following an if, or a try/except containing a
5+
return statement. As such, it will warn when it encounters an else
6+
following a chain of ifs, all of them containing a return statement.

docs/description/R1720.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# No Else Raise (R1720)
22

33
Unnecessary "%s" after "raise", %s Used in order to highlight an
4-
unnecessary block of code following an if containing a raise statement.
5-
As such, it will warn when it encounters an else following a chain of
6-
ifs, all of them containing a raise statement.
4+
unnecessary block of code following an if, or a try/except containing a
5+
raise statement. As such, it will warn when it encounters an else
6+
following a chain of ifs, all of them containing a raise statement.

docs/description/W0136.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Continue In Finally (W0136)
2+
3+
'continue' discouraged inside 'finally' clause Emitted when the continue
4+
keyword is found inside a finally clause. This will raise a
5+
SyntaxWarning starting in Python 3.14.

docs/description/W0137.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Break In Finally (W0137)
2+
3+
'break' discouraged inside 'finally' clause Emitted when the break
4+
keyword is found inside a finally clause. This will raise a
5+
SyntaxWarning starting in Python 3.14.

docs/description/W1514.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
Using open without explicitly specifying an encoding It is better to
44
specify an encoding when opening documents. Using the system default
55
implicitly can create problems on other operating systems. See
6-
https://peps.python.org/pep-0597/
6+
https://peps.python.org/pep-0597/ This message can't be emitted when
7+
using Python \>= 3.15.

docs/description/description.json

Lines changed: 770 additions & 760 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)