Skip to content

Commit 1be6bdc

Browse files
authored
Merge pull request #222 from codacy/bump_to_3_2_6
bump to 3.2.6
2 parents b6f1ce8 + bc8e404 commit 1be6bdc

File tree

7 files changed

+37
-5
lines changed

7 files changed

+37
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2.1
22

33
orbs:
4-
codacy: codacy/base@10.11.1
5-
codacy_plugins_test: codacy/plugins-test@2.0.6
4+
codacy: codacy/base@12.1.2
5+
codacy_plugins_test: codacy/plugins-test@2.0.11
66

77
workflows:
88
version: 2

Dockerfile

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

docs/description/E0606.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# possibly-used-before-assignment (E0606)
2+
3+
Possibly using variable %r before assignment Emitted when a local
4+
variable is accessed before its assignment took place in both branches
5+
of an if/else switch.

docs/description/W0135.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# contextmanager-generator-missing-cleanup (W0135)
2+
3+
The context used in function %r will not be exited. Used when a
4+
contextmanager is used inside a generator function and the cleanup is
5+
not handled.

docs/description/description.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@
189189
"title": "pointless-string-statement (W0105)",
190190
"description": "String statement has no effect Used when a string is used as a statement (which of course has no effect). This is a particular case of W0104 with its own message so you can easily disable it if you're using those strings as documentation, instead of comments."
191191
},
192+
{
193+
"patternId": "W0135",
194+
"title": "contextmanager-generator-missing-cleanup (W0135)",
195+
"description": "The context used in function %r will not be exited. Used when a contextmanager is used inside a generator function and the cleanup is not handled."
196+
},
192197
{
193198
"patternId": "W0107",
194199
"title": "unnecessary-pass (W0107)",
@@ -1633,6 +1638,11 @@
16331638
"title": "no-name-in-module (E0611)",
16341639
"description": "No name %r in module %r Used when a name cannot be found in a module."
16351640
},
1641+
{
1642+
"patternId": "E0606",
1643+
"title": "possibly-used-before-assignment (E0606)",
1644+
"description": "Possibly using variable %r before assignment Emitted when a local variable is accessed before its assignment took place in both branches of an if/else switch."
1645+
},
16361646
{
16371647
"patternId": "E0602",
16381648
"title": "undefined-variable (E0602)",

docs/patterns.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pylintpython3",
3-
"version": "3.1.0",
3+
"version": "3.2.6",
44
"patterns": [
55
{
66
"patternId": "E0103",
@@ -230,6 +230,12 @@
230230
"category": "CodeStyle",
231231
"enabled": true
232232
},
233+
{
234+
"patternId": "W0135",
235+
"level": "Warning",
236+
"category": "CodeStyle",
237+
"enabled": false
238+
},
233239
{
234240
"patternId": "W0107",
235241
"level": "Warning",
@@ -1954,6 +1960,12 @@
19541960
"category": "CodeStyle",
19551961
"enabled": false
19561962
},
1963+
{
1964+
"patternId": "E0606",
1965+
"level": "Error",
1966+
"category": "CodeStyle",
1967+
"enabled": false
1968+
},
19571969
{
19581970
"patternId": "E0602",
19591971
"level": "Error",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pylint==3.1.0
1+
pylint==3.2.6
22
Django==5.0.3
33
pylint-django==2.5.5
44
Flask==3.0.2

0 commit comments

Comments
 (0)