prospector 1.10.3__py3-none-any.whl → 1.11.0__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/exceptions.py CHANGED
@@ -3,7 +3,6 @@ from pathlib import Path
3
3
 
4
4
 
5
5
  class FatalProspectorException(Exception):
6
-
7
6
  """
8
7
  Exception used to indicate an internal prospector problem.
9
8
  Problems in prospector itself should raise this to notify
@@ -5,7 +5,6 @@ from prospector.formatters.base import Formatter
5
5
 
6
6
 
7
7
  class PylintFormatter(Formatter):
8
-
9
8
  """
10
9
  This formatter outputs messages in the same way as pylint -f parseable , which is used by several
11
10
  tools to parse pylint output. This formatter is therefore a compatibility shim between tools built
@@ -5,7 +5,6 @@ from prospector.formatters.base import Formatter
5
5
 
6
6
 
7
7
  class VSCodeFormatter(Formatter):
8
-
9
8
  """
10
9
  This formatter outputs messages in the same way as vscode prospector linter expects.
11
10
  """
@@ -4,7 +4,6 @@ from prospector.formatters.base import Formatter
4
4
 
5
5
 
6
6
  class XunitFormatter(Formatter):
7
-
8
7
  """
9
8
  This formatter outputs messages in the Xunit xml format, which is used by several
10
9
  CI tools to parse output. This formatter is therefore a compatibility shim between tools built
prospector/suppression.py CHANGED
@@ -19,6 +19,7 @@ in the file:
19
19
  This module's job is to attempt to collect all of these methods into
20
20
  a single coherent list of error suppression locations.
21
21
  """
22
+
22
23
  import re
23
24
  import warnings
24
25
  from collections import defaultdict
@@ -5,7 +5,7 @@ from collections import defaultdict
5
5
  from pathlib import Path
6
6
  from typing import List
7
7
 
8
- from pylint.config import find_pylintrc
8
+ from pylint.config import find_default_config_files
9
9
  from pylint.exceptions import UnknownMessageError
10
10
  from pylint.lint.run import _cpu_count
11
11
 
@@ -177,7 +177,14 @@ class PylintTool(ToolBase):
177
177
  # try to find a .pylintrc
178
178
  pylintrc = pylint_options.get("config_file")
179
179
  external_config = prospector_config.external_config_location("pylint")
180
- pylintrc = pylintrc or external_config or find_pylintrc()
180
+
181
+ pylintrc = pylintrc or external_config
182
+
183
+ if pylintrc is None:
184
+ for p in find_default_config_files():
185
+ pylintrc = str(p)
186
+ break
187
+
181
188
  if pylintrc is None: # nothing explicitly configured
182
189
  for possible in (".pylintrc", "pylintrc", "pyproject.toml", "setup.cfg"):
183
190
  pylintrc_path = os.path.join(prospector_config.workdir, possible)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prospector
3
- Version: 1.10.3
3
+ Version: 1.11.0
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+
@@ -9,7 +9,7 @@ Author: Carl Crowder
9
9
  Author-email: git@carlcrowder.com
10
10
  Maintainer: Carl Crowder
11
11
  Maintainer-email: git@carlcrowder.com
12
- Requires-Python: >=3.7.2,<4.0
12
+ Requires-Python: >=3.8.1,<4.0
13
13
  Classifier: Development Status :: 5 - Production/Stable
14
14
  Classifier: Environment :: Console
15
15
  Classifier: Intended Audience :: Developers
@@ -17,12 +17,12 @@ Classifier: License :: OSI Approved :: GNU General Public License v2 or later (G
17
17
  Classifier: License :: Other/Proprietary License
18
18
  Classifier: Operating System :: Unix
19
19
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.8
21
20
  Classifier: Programming Language :: Python :: 3.9
22
21
  Classifier: Programming Language :: Python :: 3.10
23
22
  Classifier: Programming Language :: Python :: 3.10
24
23
  Classifier: Programming Language :: Python :: 3.11
25
- Classifier: Programming Language :: Python :: 3.7
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
26
  Classifier: Programming Language :: Python :: 3.8
27
27
  Classifier: Programming Language :: Python :: 3.9
28
28
  Classifier: Topic :: Software Development :: Quality Assurance
@@ -36,15 +36,15 @@ Requires-Dist: GitPython (>=3.1.27,<4.0.0)
36
36
  Requires-Dist: PyYAML
37
37
  Requires-Dist: bandit (>=1.5.1); extra == "with_bandit" or extra == "with_everything"
38
38
  Requires-Dist: dodgy (>=0.2.1,<0.3.0)
39
- Requires-Dist: flake8 (<6.0.0)
39
+ Requires-Dist: flake8 (<7.0.0)
40
40
  Requires-Dist: mccabe (>=0.7.0,<0.8.0)
41
41
  Requires-Dist: mypy (>=0.600); extra == "with_mypy" or extra == "with_everything"
42
42
  Requires-Dist: packaging
43
43
  Requires-Dist: pep8-naming (>=0.3.3,<=0.10.0)
44
44
  Requires-Dist: pycodestyle (>=2.9.0)
45
45
  Requires-Dist: pydocstyle (>=2.0.0)
46
- Requires-Dist: pyflakes (>=2.2.0,<3)
47
- Requires-Dist: pylint (>=2.8.3)
46
+ Requires-Dist: pyflakes (>=2.2.0,<4)
47
+ Requires-Dist: pylint (>=2.8.3,<3.0)
48
48
  Requires-Dist: pylint-celery (==0.3)
49
49
  Requires-Dist: pylint-django (>=2.5,<2.6)
50
50
  Requires-Dist: pylint-flask (==0.6)
@@ -8,17 +8,17 @@ prospector/config/__init__.py,sha256=yUO3j4DwpCTP6p3In8NzIUDf8dMMyYw8eX28yAvOl0c
8
8
  prospector/config/configuration.py,sha256=0upMM9OvW93rW8TIrtP7yo_n6MWCh1gfCDjVwx_CW2M,13905
9
9
  prospector/config/datatype.py,sha256=YuiwM-t89DGAmiBvkGA3y3roTTIKMCveIZnXVsZaWSQ,628
10
10
  prospector/encoding.py,sha256=3t4FjHgNlInyth7IYgBiJcD3a3iUYLdZQEBhNADx_44,1542
11
- prospector/exceptions.py,sha256=M1hsKthSNvXNui0c6q1lH5ZMSWFObxCSvNVrKgrLyMg,1291
11
+ prospector/exceptions.py,sha256=Vlu5FB0cDUO1BOgDTqk49-zq-GrcaC2RtXFuuS1347Y,1290
12
12
  prospector/finder.py,sha256=zys3GTJhmeNGWZvUozksHf0KCVDloE7jz9_v7NXvYQU,4723
13
13
  prospector/formatters/__init__.py,sha256=WrpHaZlxndsoZaGbwyB-_pZ03_xfnuLlUgAVgE1lpEU,439
14
14
  prospector/formatters/base.py,sha256=g3D-kQdVbcTDC4NG9IooC_9Ael01ZtSh2dpQPx9DIW8,1252
15
15
  prospector/formatters/emacs.py,sha256=1OLeHgmhCxnhkGwlbD9LI8SE-t7QtcoQpCyT2S-pyEE,767
16
16
  prospector/formatters/grouped.py,sha256=uTR-ESVlO93c-lWXUlTRYY9Vm7Phra1u-SXUlYiyhkw,1239
17
17
  prospector/formatters/json.py,sha256=j2-nEd14KG2HV8iL2XY6Dn05chetl7A7gQyLzu9TYek,930
18
- prospector/formatters/pylint.py,sha256=3mpN3n4jNRxuGSeYYXsZtUA4lMHB3d3aowv3r6lEfAo,1741
18
+ prospector/formatters/pylint.py,sha256=b14vCi2Q9FjU0R8lKWtORQ7s23EOoObqQPFWV6hsurU,1740
19
19
  prospector/formatters/text.py,sha256=jDNaIGr3FLou_u3ttuGjIVT9b3gjh2hRgfDO04l-E0o,3020
20
- prospector/formatters/vscode.py,sha256=_GsiTMss2sEQ7mXdFgwV7f65GJ1ICZs2vKKhU44cwZk,1294
21
- prospector/formatters/xunit.py,sha256=CjefrgNqifl3Gef_plAv4NQCD50j1cqxClhS8kEWQe0,2431
20
+ prospector/formatters/vscode.py,sha256=pK9JFY09yhHIlce9ZpBvIGfqLW3fQ2P407PdQSsmqto,1293
21
+ prospector/formatters/xunit.py,sha256=CeePyA7U25EL17-172t-IiIBJ6jV7EejQ8xNWKdNkIQ,2430
22
22
  prospector/formatters/yaml.py,sha256=rfMC8clJuTUMefypz3zguh1nFFT1z8C-2TydQ5zehRU,613
23
23
  prospector/message.py,sha256=UqnuCYMi6XM1SJHRAb6fquAreAoWSMX5z0Vv9Ub80vI,2732
24
24
  prospector/pathutils.py,sha256=81z36CjcbTb0JtvOdH0_FmT99PjAW4NbTF0TxJF884A,1306
@@ -43,7 +43,7 @@ prospector/profiles/profiles/strictness_veryhigh.yaml,sha256=m93J1OzGCRVTWrIQbzh
43
43
  prospector/profiles/profiles/strictness_verylow.yaml,sha256=YxZowcBtA3tAaHJGz2htTdAJ-AXmlHB-o4zEYKPRfJg,833
44
44
  prospector/profiles/profiles/test_warnings.yaml,sha256=arUcV9MnqiZJEHURH9bVRSYDhYUegNc-ltFYe_yQW44,23
45
45
  prospector/run.py,sha256=KL6IkqMg6r9UvNFYoBSBIJQpl1el75Ohr7EehcqCIyg,8102
46
- prospector/suppression.py,sha256=0cN4b5OMTob6dcSmXS9Sha0q4TviN-CgRQ4Kfv_s4Dg,4467
46
+ prospector/suppression.py,sha256=lcPLQa3sfj9Tdr_1oBVg8AjhNumB9GV5XCUIW31Pzhw,4468
47
47
  prospector/tools/__init__.py,sha256=Iv215I3Opop0zXrFFFOmDFbGypWIQUjZm9t8Kq4hjrY,2651
48
48
  prospector/tools/bandit/__init__.py,sha256=rfwYIf78CLRTpPjfnWoqn9dB7WsjIOLfod10hAboUqY,2212
49
49
  prospector/tools/base.py,sha256=-Mj36ClqymzKl0WtigJd_3_8TZo2ZT4F3YIkj6tmv9Y,1575
@@ -55,15 +55,15 @@ prospector/tools/profile_validator/__init__.py,sha256=oIGcqLqgOQXZ3DRyGIzEEWBlyH
55
55
  prospector/tools/pycodestyle/__init__.py,sha256=3e8bQWiuUuHPX8jVlZOPj78nSHlyRI7tc-YB3lV9TK8,5452
56
56
  prospector/tools/pydocstyle/__init__.py,sha256=kwyvkT372J3rQrTK8MdhQMB8jHShoMu_Bcp0DXiA5Ts,2537
57
57
  prospector/tools/pyflakes/__init__.py,sha256=VgIBmp2orCq2qe374ea9XP0-rudHs09y-SniSuLYvMk,4997
58
- prospector/tools/pylint/__init__.py,sha256=8KOZSzTP4DM5s6LG-O6EH3Om_fyj6JNIlYdGqTIdya0,9885
58
+ prospector/tools/pylint/__init__.py,sha256=BP0o0RtwihpbyfPcsWtXXJX38ie-88F411ESMYDbu3U,10032
59
59
  prospector/tools/pylint/collector.py,sha256=TBvQpXWTcjIaIkZSEv7TWLz4VY9mgBM3xZaOmVz0N40,1334
60
60
  prospector/tools/pylint/linter.py,sha256=hNxHO8wkcNjjQf-rPmXCpX-Enkt0lmapcrxIWwJiFkE,1820
61
61
  prospector/tools/pyright/__init__.py,sha256=rpVe7XmEHCViQsyg6DN9sI5_b9tCO2fFeSuZfEqcaL8,2931
62
62
  prospector/tools/pyroma/__init__.py,sha256=yf5TiA0fB2bxjtqwfod3ahx5hnFyk9iy6u6C3H6VF-4,2947
63
63
  prospector/tools/utils.py,sha256=rOGn_FAiLHG9CS6KzE8FAJzXkEJMzdFYS29U19Ad7bA,1161
64
64
  prospector/tools/vulture/__init__.py,sha256=blzCrLQkGsvUuD6pp5ST3vgwvHvQ7jv-kqgY_Lukh1Q,3058
65
- prospector-1.10.3.dist-info/entry_points.txt,sha256=SxvCGt8MJTEZefHAvwnUc6jDetgCaaYY1Zpifuk8tqU,50
66
- prospector-1.10.3.dist-info/LICENSE,sha256=WoTRadDy8VbcIKoVzl5Q1QipuD_cexAf3ul4MaVLttc,18044
67
- prospector-1.10.3.dist-info/WHEEL,sha256=gSF7fibx4crkLz_A-IKR6kcuq0jJ64KNCkG8_bcaEao,88
68
- prospector-1.10.3.dist-info/METADATA,sha256=fHyD66pRZrH3YuxeXWhQO6D0anPKPej08qYmuO-O-cM,10001
69
- prospector-1.10.3.dist-info/RECORD,,
65
+ prospector-1.11.0.dist-info/entry_points.txt,sha256=SxvCGt8MJTEZefHAvwnUc6jDetgCaaYY1Zpifuk8tqU,50
66
+ prospector-1.11.0.dist-info/LICENSE,sha256=WoTRadDy8VbcIKoVzl5Q1QipuD_cexAf3ul4MaVLttc,18044
67
+ prospector-1.11.0.dist-info/WHEEL,sha256=gSF7fibx4crkLz_A-IKR6kcuq0jJ64KNCkG8_bcaEao,88
68
+ prospector-1.11.0.dist-info/METADATA,sha256=UthQhxdRGU81ajTG8DBnac9lYdGLb9L5DNNQh8cIPQo,10008
69
+ prospector-1.11.0.dist-info/RECORD,,