prospector 1.15.0__py3-none-any.whl → 1.15.1__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.
@@ -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
@@ -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}, Hint: {mypy_message['hint']}."
137
+ message = f"{message} {mypy_message['hint']}."
133
138
  code = mypy_message["code"]
134
139
  messages.append(
135
140
  Message(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prospector
3
- Version: 1.15.0
3
+ Version: 1.15.1
4
4
  Summary: Prospector is a tool to analyse Python code by aggregating the result of other tools.
5
5
  Home-page: http://prospector.readthedocs.io
6
6
  License: GPLv2+
@@ -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=hQMYpwKHjP-DI9yjnNWcXOyWcDEf8U-I2Bg5-78BFV8,30816
5
+ prospector/blender_combinations.yaml,sha256=v17n7matAIfwRxXYt0Wm1nARtfn4VYNF40_s528w0YQ,30799
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=G39v_IlcWkG7hm0R4qTwAoU2K-sWyqXHc-kgaawdqys,5092
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.0.dist-info/entry_points.txt,sha256=SxvCGt8MJTEZefHAvwnUc6jDetgCaaYY1Zpifuk8tqU,50
69
- prospector-1.15.0.dist-info/LICENSE,sha256=WoTRadDy8VbcIKoVzl5Q1QipuD_cexAf3ul4MaVLttc,18044
70
- prospector-1.15.0.dist-info/WHEEL,sha256=gSF7fibx4crkLz_A-IKR6kcuq0jJ64KNCkG8_bcaEao,88
71
- prospector-1.15.0.dist-info/METADATA,sha256=hZAMrN74gIl-pGLRyaL7aItQmpqkM8e9aa5P1GMZKaY,9962
72
- prospector-1.15.0.dist-info/RECORD,,
68
+ prospector-1.15.1.dist-info/entry_points.txt,sha256=SxvCGt8MJTEZefHAvwnUc6jDetgCaaYY1Zpifuk8tqU,50
69
+ prospector-1.15.1.dist-info/LICENSE,sha256=WoTRadDy8VbcIKoVzl5Q1QipuD_cexAf3ul4MaVLttc,18044
70
+ prospector-1.15.1.dist-info/WHEEL,sha256=gSF7fibx4crkLz_A-IKR6kcuq0jJ64KNCkG8_bcaEao,88
71
+ prospector-1.15.1.dist-info/METADATA,sha256=I9KCwjkk07gPH7NW439cOJ4WyC_L-SJjPQy2UTKjq0o,9962
72
+ prospector-1.15.1.dist-info/RECORD,,