prospector 1.15.0__py3-none-any.whl → 1.15.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- prospector/blender_combinations.yaml +8 -1
- prospector/tools/mypy/__init__.py +6 -1
- {prospector-1.15.0.dist-info → prospector-1.15.2.dist-info}/METADATA +1 -1
- {prospector-1.15.0.dist-info → prospector-1.15.2.dist-info}/RECORD +7 -7
- {prospector-1.15.0.dist-info → prospector-1.15.2.dist-info}/LICENSE +0 -0
- {prospector-1.15.0.dist-info → prospector-1.15.2.dist-info}/WHEEL +0 -0
- {prospector-1.15.0.dist-info → prospector-1.15.2.dist-info}/entry_points.txt +0 -0
|
@@ -23,7 +23,6 @@ combinations:
|
|
|
23
23
|
- pycodestyle: E901
|
|
24
24
|
- mccabe: MC0000
|
|
25
25
|
- frosted: E402
|
|
26
|
-
- ruff: F999
|
|
27
26
|
|
|
28
27
|
- # Undefined local variable
|
|
29
28
|
- pylint: undefined-variable
|
|
@@ -200,6 +199,7 @@ combinations:
|
|
|
200
199
|
- pep8: N804
|
|
201
200
|
- pycodestyle: N804
|
|
202
201
|
- pylint: bad-classmethod-argument
|
|
202
|
+
- ruff: N804
|
|
203
203
|
|
|
204
204
|
- # '<>' is deprecated, use '!='
|
|
205
205
|
- pep8: W603
|
|
@@ -320,16 +320,19 @@ combinations:
|
|
|
320
320
|
- - pylint: invalid-name
|
|
321
321
|
- pep8: N802
|
|
322
322
|
- pycodestyle: N802
|
|
323
|
+
- ruff: N802
|
|
323
324
|
|
|
324
325
|
# argument name should be lowercase
|
|
325
326
|
- - pylint: invalid-name
|
|
326
327
|
- pep8: N803
|
|
327
328
|
- pycodestyle: N803
|
|
329
|
+
- ruff: N803
|
|
328
330
|
|
|
329
331
|
# Variable in function should be lowercase
|
|
330
332
|
- - pylint: invalid-name
|
|
331
333
|
- pep8: N806
|
|
332
334
|
- pycodestyle: N806
|
|
335
|
+
- ruff: N806
|
|
333
336
|
|
|
334
337
|
# too complex
|
|
335
338
|
- # Too many branches ({branches} > {max_branches})
|
|
@@ -377,6 +380,10 @@ combinations:
|
|
|
377
380
|
- ruff: S603
|
|
378
381
|
- ruff: PLW1510
|
|
379
382
|
|
|
383
|
+
- # Private member accessed:
|
|
384
|
+
- pylint: protected-access
|
|
385
|
+
- ruff: SLF001
|
|
386
|
+
|
|
380
387
|
# assert_used
|
|
381
388
|
- - ruff: S101
|
|
382
389
|
- bandit: B101
|
|
@@ -102,6 +102,11 @@ class MypyTool(ToolBase):
|
|
|
102
102
|
|
|
103
103
|
raise BadToolConfig("mypy", f"The option {name} has an unsupported value type: {type(value)}")
|
|
104
104
|
|
|
105
|
+
for code in prospector_config.get_disabled_messages("mypy"):
|
|
106
|
+
self.options.append(f"--disable-error-code={code}")
|
|
107
|
+
for code in prospector_config.get_enabled_messages("mypy"):
|
|
108
|
+
self.options.append(f"--enable-error-code={code}")
|
|
109
|
+
|
|
105
110
|
def run(self, found_files: FileFinder) -> list[Message]:
|
|
106
111
|
args = [str(path) for path in found_files.python_modules]
|
|
107
112
|
args.extend(self.options)
|
|
@@ -129,7 +134,7 @@ class MypyTool(ToolBase):
|
|
|
129
134
|
mypy_message = json.loads(mypy_json)
|
|
130
135
|
message = f"{mypy_message['message']}."
|
|
131
136
|
if mypy_message.get("hint", ""):
|
|
132
|
-
message = f"{message}
|
|
137
|
+
message = f"{message} {mypy_message['hint']}."
|
|
133
138
|
code = mypy_message["code"]
|
|
134
139
|
messages.append(
|
|
135
140
|
Message(
|
|
@@ -2,7 +2,7 @@ prospector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
prospector/__main__.py,sha256=-gdHYZxwq_P8er7HuZEBImY0pwaFq8uIa78dQdJsTTQ,71
|
|
3
3
|
prospector/autodetect.py,sha256=Ok8S6jpDiGyhQlnRCMWpsLpSAIXWxA-NQphQuPaOm6o,3112
|
|
4
4
|
prospector/blender.py,sha256=ldQSkfoEKv6pd72B9YCYdapeGUzgfhGzieAu7To3l6Y,4926
|
|
5
|
-
prospector/blender_combinations.yaml,sha256=
|
|
5
|
+
prospector/blender_combinations.yaml,sha256=Cr0YAwsGKTy095GO8ktMXqCLUWwq3i3Za1Bu34JR-sI,30949
|
|
6
6
|
prospector/compat.py,sha256=p_2BOebzUcKbUAd7mW8rn6tIc10R96gJuZS71QI0XY4,360
|
|
7
7
|
prospector/config/__init__.py,sha256=4nYshBncKUvZrwNKmp2bQ2mQ8uRS7GU20xPbiC-nJ9g,14793
|
|
8
8
|
prospector/config/configuration.py,sha256=sNYR5Jc3P7tfIDXQoDMrOX4i2Yde0o9bc21ZXZNn6rw,14046
|
|
@@ -52,7 +52,7 @@ prospector/tools/base.py,sha256=xL_uUbhZUyPrDU-2ntgmzhs-DW1e5sfDKb_OA7VtxKQ,2146
|
|
|
52
52
|
prospector/tools/dodgy/__init__.py,sha256=howLCjFEheW_6ZoyQ15gLbiNNNUr0Pm2qNpLg3kleFY,1648
|
|
53
53
|
prospector/tools/exceptions.py,sha256=Q-u4n6YzZuoMu17XkeKac1o1gBY36JK4MnvWaYrVYL0,170
|
|
54
54
|
prospector/tools/mccabe/__init__.py,sha256=80-aYPqKCREeBqxiIUgsDvxc_GqYxHb5R0JduKHPRaE,3277
|
|
55
|
-
prospector/tools/mypy/__init__.py,sha256=
|
|
55
|
+
prospector/tools/mypy/__init__.py,sha256=MLFBEnICTsLNO2piwRbcrWIv12ddgIqnQSuq43CRGTc,5350
|
|
56
56
|
prospector/tools/profile_validator/__init__.py,sha256=bAkVG-fKtm3WaEv-We36wqzvtqWv4s06Z7YnRVG7UQ4,8326
|
|
57
57
|
prospector/tools/pycodestyle/__init__.py,sha256=uMpUxqsPsryEsfyfGxpLzwoWUjIvfxIQke4Xvkfbi9A,5970
|
|
58
58
|
prospector/tools/pydocstyle/__init__.py,sha256=WB-AT-c1FeUUUWATUzJbBLeREtu-lxT03bChh4nablo,2776
|
|
@@ -65,8 +65,8 @@ prospector/tools/pyroma/__init__.py,sha256=GPQRJZfbs_SI0RBTyySz-4SIuM__YoLfXAm7u
|
|
|
65
65
|
prospector/tools/ruff/__init__.py,sha256=r55pEbmjLFWmY1jiQ7aZ2OYBxkEAH5An3-CpL04rdc0,3915
|
|
66
66
|
prospector/tools/utils.py,sha256=cRCogsMCH0lPBhdujPsIY0ovNAL6TAxBMohZRES02-4,1770
|
|
67
67
|
prospector/tools/vulture/__init__.py,sha256=eaTh4X5onNlBMuz1x0rmcRn7x5XDVDgqftjIEd47eWI,3583
|
|
68
|
-
prospector-1.15.
|
|
69
|
-
prospector-1.15.
|
|
70
|
-
prospector-1.15.
|
|
71
|
-
prospector-1.15.
|
|
72
|
-
prospector-1.15.
|
|
68
|
+
prospector-1.15.2.dist-info/entry_points.txt,sha256=SxvCGt8MJTEZefHAvwnUc6jDetgCaaYY1Zpifuk8tqU,50
|
|
69
|
+
prospector-1.15.2.dist-info/LICENSE,sha256=WoTRadDy8VbcIKoVzl5Q1QipuD_cexAf3ul4MaVLttc,18044
|
|
70
|
+
prospector-1.15.2.dist-info/WHEEL,sha256=gSF7fibx4crkLz_A-IKR6kcuq0jJ64KNCkG8_bcaEao,88
|
|
71
|
+
prospector-1.15.2.dist-info/METADATA,sha256=nqGJNXbYx4ygQlRYWmuYYgOui8Zk9PhsA90WKIejqyk,9962
|
|
72
|
+
prospector-1.15.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|