prospector 1.17.2__tar.gz → 1.18.0__tar.gz

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.
Files changed (73) hide show
  1. {prospector-1.17.2 → prospector-1.18.0}/PKG-INFO +18 -9
  2. {prospector-1.17.2 → prospector-1.18.0}/README.rst +12 -4
  3. {prospector-1.17.2 → prospector-1.18.0}/prospector/blender_combinations.yaml +4 -0
  4. {prospector-1.17.2 → prospector-1.18.0}/pyproject.toml +14 -15
  5. {prospector-1.17.2 → prospector-1.18.0}/LICENSE +0 -0
  6. {prospector-1.17.2 → prospector-1.18.0}/prospector/__init__.py +0 -0
  7. {prospector-1.17.2 → prospector-1.18.0}/prospector/__main__.py +0 -0
  8. {prospector-1.17.2 → prospector-1.18.0}/prospector/autodetect.py +0 -0
  9. {prospector-1.17.2 → prospector-1.18.0}/prospector/blender.py +0 -0
  10. {prospector-1.17.2 → prospector-1.18.0}/prospector/compat.py +0 -0
  11. {prospector-1.17.2 → prospector-1.18.0}/prospector/config/__init__.py +0 -0
  12. {prospector-1.17.2 → prospector-1.18.0}/prospector/config/configuration.py +0 -0
  13. {prospector-1.17.2 → prospector-1.18.0}/prospector/config/datatype.py +0 -0
  14. {prospector-1.17.2 → prospector-1.18.0}/prospector/encoding.py +0 -0
  15. {prospector-1.17.2 → prospector-1.18.0}/prospector/exceptions.py +0 -0
  16. {prospector-1.17.2 → prospector-1.18.0}/prospector/finder.py +0 -0
  17. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/__init__.py +0 -0
  18. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/base.py +0 -0
  19. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/base_summary.py +0 -0
  20. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/emacs.py +0 -0
  21. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/gitlab.py +0 -0
  22. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/grouped.py +0 -0
  23. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/json.py +0 -0
  24. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/pylint.py +0 -0
  25. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/pylint_parseable.py +0 -0
  26. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/text.py +0 -0
  27. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/vscode.py +0 -0
  28. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/xunit.py +0 -0
  29. {prospector-1.17.2 → prospector-1.18.0}/prospector/formatters/yaml.py +0 -0
  30. {prospector-1.17.2 → prospector-1.18.0}/prospector/identify.py +0 -0
  31. {prospector-1.17.2 → prospector-1.18.0}/prospector/message.py +0 -0
  32. {prospector-1.17.2 → prospector-1.18.0}/prospector/pathutils.py +0 -0
  33. {prospector-1.17.2 → prospector-1.18.0}/prospector/postfilter.py +0 -0
  34. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/__init__.py +0 -0
  35. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/exceptions.py +0 -0
  36. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profile.py +0 -0
  37. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/default.yaml +0 -0
  38. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/doc_warnings.yaml +0 -0
  39. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/flake8.yaml +0 -0
  40. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/full_pep8.yaml +0 -0
  41. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/member_warnings.yaml +0 -0
  42. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/no_doc_warnings.yaml +0 -0
  43. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/no_member_warnings.yaml +0 -0
  44. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/no_pep8.yaml +0 -0
  45. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/no_test_warnings.yaml +0 -0
  46. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/strictness_high.yaml +0 -0
  47. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/strictness_low.yaml +0 -0
  48. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/strictness_medium.yaml +0 -0
  49. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/strictness_none.yaml +0 -0
  50. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/strictness_veryhigh.yaml +0 -0
  51. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/strictness_verylow.yaml +0 -0
  52. {prospector-1.17.2 → prospector-1.18.0}/prospector/profiles/profiles/test_warnings.yaml +0 -0
  53. {prospector-1.17.2 → prospector-1.18.0}/prospector/run.py +0 -0
  54. {prospector-1.17.2 → prospector-1.18.0}/prospector/suppression.py +0 -0
  55. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/__init__.py +0 -0
  56. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/bandit/__init__.py +0 -0
  57. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/base.py +0 -0
  58. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/dodgy/__init__.py +0 -0
  59. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/exceptions.py +0 -0
  60. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/mccabe/__init__.py +0 -0
  61. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/mypy/__init__.py +0 -0
  62. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/profile_validator/__init__.py +0 -0
  63. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/pycodestyle/__init__.py +0 -0
  64. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/pydocstyle/__init__.py +0 -0
  65. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/pyflakes/__init__.py +0 -0
  66. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/pylint/__init__.py +0 -0
  67. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/pylint/collector.py +0 -0
  68. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/pylint/linter.py +0 -0
  69. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/pyright/__init__.py +0 -0
  70. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/pyroma/__init__.py +0 -0
  71. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/ruff/__init__.py +0 -0
  72. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/utils.py +0 -0
  73. {prospector-1.17.2 → prospector-1.18.0}/prospector/tools/vulture/__init__.py +0 -0
@@ -1,8 +1,9 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: prospector
3
- Version: 1.17.2
3
+ Version: 1.18.0
4
4
  Summary: Prospector is a tool to analyse Python code by aggregating the result of other tools.
5
5
  License: GPLv2+
6
+ License-File: LICENSE
6
7
  Keywords: prospector,pylint,static code analysis
7
8
  Author: Carl Crowder
8
9
  Author-email: git@carlcrowder.com
@@ -20,6 +21,7 @@ Classifier: Programming Language :: Python :: 3.10
20
21
  Classifier: Programming Language :: Python :: 3.11
21
22
  Classifier: Programming Language :: Python :: 3.12
22
23
  Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: 3.14
23
25
  Classifier: Topic :: Software Development :: Quality Assurance
24
26
  Provides-Extra: with-bandit
25
27
  Provides-Extra: with-everything
@@ -28,7 +30,6 @@ Provides-Extra: with-pyright
28
30
  Provides-Extra: with-pyroma
29
31
  Provides-Extra: with-ruff
30
32
  Provides-Extra: with-vulture
31
- Requires-Dist: GitPython (>=3.1.27,<4.0.0)
32
33
  Requires-Dist: PyYAML
33
34
  Requires-Dist: bandit ; extra == "with-bandit"
34
35
  Requires-Dist: bandit ; extra == "with-everything"
@@ -41,14 +42,14 @@ Requires-Dist: pep8-naming (>=0.3.3,<=0.10.0)
41
42
  Requires-Dist: pycodestyle (>=2.9.0)
42
43
  Requires-Dist: pydocstyle (>=2.0.0)
43
44
  Requires-Dist: pyflakes (>=2.2.0)
44
- Requires-Dist: pylint (>=3.0)
45
+ Requires-Dist: pylint (>=4.0)
45
46
  Requires-Dist: pylint-celery (==0.3)
46
47
  Requires-Dist: pylint-django (>=2.6.1)
47
48
  Requires-Dist: pyright ; extra == "with-everything"
48
49
  Requires-Dist: pyright ; extra == "with-pyright"
49
50
  Requires-Dist: pyroma ; extra == "with-everything"
50
51
  Requires-Dist: pyroma ; extra == "with-pyroma"
51
- Requires-Dist: requirements-detector (>=1.3.2)
52
+ Requires-Dist: requirements-detector (>=1.5.0)
52
53
  Requires-Dist: ruff ; extra == "with-everything"
53
54
  Requires-Dist: ruff ; extra == "with-ruff"
54
55
  Requires-Dist: setoptconf-tmp (>=0.3.1,<0.4.0)
@@ -206,7 +207,9 @@ pre-commit
206
207
 
207
208
  If you'd like Prospector to be run automatically when making changes to files in your Git
208
209
  repository, you can install `pre-commit <https://pre-commit.com/>`_ and add the following
209
- text to your repositories' ``.pre-commit-config.yaml``::
210
+ text to your repositories' ``.pre-commit-config.yaml``:
211
+
212
+ .. code-block:: yaml
210
213
 
211
214
  repos:
212
215
  - repo: https://github.com/PyCQA/prospector
@@ -215,7 +218,9 @@ text to your repositories' ``.pre-commit-config.yaml``::
215
218
  - id: prospector
216
219
 
217
220
  This only installs base prospector - if you also use optional tools, for example bandit and/or mypy, then you can add
218
- them to the hook configuration like so::
221
+ them to the hook configuration like so:
222
+
223
+ .. code-block:: yaml
219
224
 
220
225
  repos:
221
226
  - repo: https://github.com/PyCQA/prospector
@@ -229,7 +234,9 @@ them to the hook configuration like so::
229
234
  '--with-tool=bandit',
230
235
  ]
231
236
 
232
- Additional dependencies can be `individually configured <https://prospector.landscape.io/en/master/profiles.html#individual-configuration-options>`_ in your `prospector.yml` file ::
237
+ Additional dependencies can be `individually configured <https://prospector.landscape.io/en/master/profiles.html#individual-configuration-options>`_ in your `prospector.yml` file :
238
+
239
+ .. code-block:: yaml
233
240
 
234
241
  # https://bandit.readthedocs.io/en/latest/config.html
235
242
  bandit:
@@ -247,7 +254,9 @@ Additional dependencies can be `individually configured <https://prospector.land
247
254
  ignore-missing-imports: true
248
255
 
249
256
  For prospector options which affect display only - those which are not configurable using a profile - these can be
250
- added as command line arguments to the hook. For example::
257
+ added as command line arguments to the hook. For example:
258
+
259
+ .. code-block:: yaml
251
260
 
252
261
  repos:
253
262
  - repo: https://github.com/PyCQA/prospector
@@ -144,7 +144,9 @@ pre-commit
144
144
 
145
145
  If you'd like Prospector to be run automatically when making changes to files in your Git
146
146
  repository, you can install `pre-commit <https://pre-commit.com/>`_ and add the following
147
- text to your repositories' ``.pre-commit-config.yaml``::
147
+ text to your repositories' ``.pre-commit-config.yaml``:
148
+
149
+ .. code-block:: yaml
148
150
 
149
151
  repos:
150
152
  - repo: https://github.com/PyCQA/prospector
@@ -153,7 +155,9 @@ text to your repositories' ``.pre-commit-config.yaml``::
153
155
  - id: prospector
154
156
 
155
157
  This only installs base prospector - if you also use optional tools, for example bandit and/or mypy, then you can add
156
- them to the hook configuration like so::
158
+ them to the hook configuration like so:
159
+
160
+ .. code-block:: yaml
157
161
 
158
162
  repos:
159
163
  - repo: https://github.com/PyCQA/prospector
@@ -167,7 +171,9 @@ them to the hook configuration like so::
167
171
  '--with-tool=bandit',
168
172
  ]
169
173
 
170
- Additional dependencies can be `individually configured <https://prospector.landscape.io/en/master/profiles.html#individual-configuration-options>`_ in your `prospector.yml` file ::
174
+ Additional dependencies can be `individually configured <https://prospector.landscape.io/en/master/profiles.html#individual-configuration-options>`_ in your `prospector.yml` file :
175
+
176
+ .. code-block:: yaml
171
177
 
172
178
  # https://bandit.readthedocs.io/en/latest/config.html
173
179
  bandit:
@@ -185,7 +191,9 @@ Additional dependencies can be `individually configured <https://prospector.land
185
191
  ignore-missing-imports: true
186
192
 
187
193
  For prospector options which affect display only - those which are not configurable using a profile - these can be
188
- added as command line arguments to the hook. For example::
194
+ added as command line arguments to the hook. For example:
195
+
196
+ .. code-block:: yaml
189
197
 
190
198
  repos:
191
199
  - repo: https://github.com/PyCQA/prospector
@@ -448,6 +448,10 @@ combinations:
448
448
  - pylint: W0212
449
449
  - ruff: SLF001
450
450
 
451
+ - # `import` should be at the top-level of a file
452
+ - ruff: PLC0415
453
+ - pylint: import-outside-toplevel
454
+
451
455
  # assert_used
452
456
  - - ruff: S101
453
457
  - bandit: B101
@@ -1,11 +1,10 @@
1
1
  [build-system]
2
2
  build-backend = "poetry.core.masonry.api"
3
-
4
- requires = [ "poetry-core>=1" ]
3
+ requires = [ "poetry-core>=2" ]
5
4
 
6
5
  [project]
7
6
  name = "prospector"
8
- version = "1.17.2"
7
+ version = "1.18.0"
9
8
  description = "Prospector is a tool to analyse Python code by aggregating the result of other tools."
10
9
  readme = "README.rst"
11
10
  keywords = [ "prospector", "pylint", "static code analysis" ]
@@ -32,17 +31,18 @@ classifiers = [
32
31
  "Programming Language :: Python :: 3.11",
33
32
  "Programming Language :: Python :: 3.12",
34
33
  "Programming Language :: Python :: 3.13",
34
+ "Programming Language :: Python :: 3.14",
35
35
  "Topic :: Software Development :: Quality Assurance",
36
36
  ]
37
37
  dynamic = [ "dependencies" ]
38
38
 
39
- optional-dependencies.with_bandit = [ "bandit" ]
40
- optional-dependencies.with_everything = [ "bandit", "mypy", "pyright", "pyroma", "ruff", "vulture" ]
41
- optional-dependencies.with_mypy = [ "mypy" ]
42
- optional-dependencies.with_pyright = [ "pyright" ]
43
- optional-dependencies.with_pyroma = [ "pyroma" ]
44
- optional-dependencies.with_ruff = [ "ruff" ]
45
- optional-dependencies.with_vulture = [ "vulture" ]
39
+ optional-dependencies.with-bandit = [ "bandit" ]
40
+ optional-dependencies.with-everything = [ "bandit", "mypy", "pyright", "pyroma", "ruff", "vulture" ]
41
+ optional-dependencies.with-mypy = [ "mypy" ]
42
+ optional-dependencies.with-pyright = [ "pyright" ]
43
+ optional-dependencies.with-pyroma = [ "pyroma" ]
44
+ optional-dependencies.with-ruff = [ "ruff" ]
45
+ optional-dependencies.with-vulture = [ "vulture" ]
46
46
  urls."Bug Tracker" = "https://github.com/prospector-dev/prospector/issues"
47
47
  urls."homepage" = "http://prospector.readthedocs.io"
48
48
  urls."repository" = "https://github.com/prospector-dev/prospector"
@@ -59,11 +59,11 @@ include = [
59
59
  ]
60
60
 
61
61
  [tool.poetry.dependencies]
62
- python = ">=3.9,<4.0"
63
- pylint = ">=3.0"
62
+ python = ">=3.10,<4.0"
63
+ pylint = ">=4.0"
64
64
  pylint-celery = "0.3"
65
65
  pylint-django = ">=2.6.1"
66
- requirements-detector = ">=1.3.2"
66
+ requirements-detector = ">=1.5.0"
67
67
  PyYAML = "*"
68
68
  mccabe = "^0.7.0"
69
69
  pyflakes = ">=2.2.0"
@@ -73,7 +73,6 @@ pydocstyle = ">=2.0.0"
73
73
  dodgy = "^0.2.1"
74
74
  toml = "^0.10.2"
75
75
  setoptconf-tmp = "^0.3.1"
76
- GitPython = "^3.1.27"
77
76
  packaging = "*"
78
77
  bandit = { version = ">=1.5.1", optional = true }
79
78
  vulture = { version = ">=1.5", optional = true }
@@ -91,7 +90,7 @@ tzlocal = "^4.2"
91
90
  coverage = "^6.5"
92
91
  pre-commit = "^4.2.0"
93
92
  tox = "^3.27.1"
94
- twine = "^5.1.1"
93
+ twine = "^6.2.0"
95
94
  types-PyYAML = "^6.0.4"
96
95
 
97
96
  [tool.ruff]
File without changes