Skip to content

Commit 7b17a72

Browse files
Upgrade pre-commit hooks (#669)
1 parent e614c51 commit 7b17a72

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fail_fast: true
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.4.0
4+
rev: v4.6.0
55
hooks:
66
- id: trailing-whitespace
77
- id: end-of-file-fixer
@@ -10,26 +10,26 @@ repos:
1010
- id: debug-statements
1111
- id: check-added-large-files
1212
- repo: https://github.com/asottile/pyupgrade
13-
rev: v3.4.0
13+
rev: v3.17.0
1414
hooks:
1515
- id: pyupgrade
16-
args: [--py37-plus]
16+
args: [--py38-plus]
1717
- repo: https://github.com/psf/black
18-
rev: 23.3.0
18+
rev: 24.8.0
1919
hooks:
2020
- id: black
2121
args:
2222
- --exclude=/(tests)/
2323
- --line-length=120
2424
- repo: https://github.com/codespell-project/codespell
25-
rev: v2.2.4
25+
rev: v2.3.0
2626
hooks:
2727
- id: codespell
2828
args:
2929
- --ignore-words-list=nin,astroid
3030
- --skip=poetry.lock
3131
- repo: https://github.com/PyCQA/prospector
32-
rev: 1.10.1
32+
rev: v1.10.3
3333
hooks:
3434
- id: prospector
3535
additional_dependencies:
@@ -41,14 +41,14 @@ repos:
4141
- --summary-only
4242
- --zero-exit
4343
- repo: https://github.com/PyCQA/flake8
44-
rev: 6.0.0
44+
rev: 7.1.1
4545
hooks:
4646
- id: flake8
4747
exclude: "testdata"
4848
args:
4949
- --max-line-length=120
5050
- repo: https://github.com/PyCQA/isort
51-
rev: 5.12.0
51+
rev: 5.13.2
5252
hooks:
5353
- id: isort
5454
args: ["--profile", "black", "--filter-files"]

prospector/exceptions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class FatalProspectorException(Exception):
6-
76
"""
87
Exception used to indicate an internal prospector problem.
98
Problems in prospector itself should raise this to notify

prospector/formatters/pylint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class PylintFormatter(Formatter):
8-
98
"""
109
This formatter outputs messages in the same way as pylint -f parseable , which is used by several
1110
tools to parse pylint output. This formatter is therefore a compatibility shim between tools built

prospector/formatters/vscode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class VSCodeFormatter(Formatter):
8-
98
"""
109
This formatter outputs messages in the same way as vscode prospector linter expects.
1110
"""

prospector/formatters/xunit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class XunitFormatter(Formatter):
7-
87
"""
98
This formatter outputs messages in the Xunit xml format, which is used by several
109
CI tools to parse output. This formatter is therefore a compatibility shim between tools built

prospector/suppression.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
This module's job is to attempt to collect all of these methods into
2020
a single coherent list of error suppression locations.
2121
"""
22+
2223
import re
2324
import warnings
2425
from collections import defaultdict

prospector/tools/pylint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def _get_pylint_configuration(
184184
for p in find_default_config_files():
185185
pylintrc = str(p)
186186
break
187-
187+
188188
if pylintrc is None: # nothing explicitly configured
189189
for possible in (".pylintrc", "pylintrc", "pyproject.toml", "setup.cfg"):
190190
pylintrc_path = os.path.join(prospector_config.workdir, possible)

tests/execution/test_execution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Tests that prospector raises the expected errors on the expected files depending on the
33
configuration of the file finder
44
"""
5+
56
import shutil
67
import tempfile
78
from pathlib import Path

0 commit comments

Comments
 (0)