Skip to content

Commit

Permalink
Upgrade pre-commit hooks (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas authored Oct 3, 2024
1 parent e614c51 commit 7b17a72
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -10,26 +10,26 @@ repos:
- id: debug-statements
- id: check-added-large-files
- repo: https://github.com/asottile/pyupgrade
rev: v3.4.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.8.0
hooks:
- id: black
args:
- --exclude=/(tests)/
- --line-length=120
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.3.0
hooks:
- id: codespell
args:
- --ignore-words-list=nin,astroid
- --skip=poetry.lock
- repo: https://github.com/PyCQA/prospector
rev: 1.10.1
rev: v1.10.3
hooks:
- id: prospector
additional_dependencies:
Expand All @@ -41,14 +41,14 @@ repos:
- --summary-only
- --zero-exit
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
exclude: "testdata"
args:
- --max-line-length=120
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
Expand Down
1 change: 0 additions & 1 deletion prospector/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@


class FatalProspectorException(Exception):

"""
Exception used to indicate an internal prospector problem.
Problems in prospector itself should raise this to notify
Expand Down
1 change: 0 additions & 1 deletion prospector/formatters/pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class PylintFormatter(Formatter):

"""
This formatter outputs messages in the same way as pylint -f parseable , which is used by several
tools to parse pylint output. This formatter is therefore a compatibility shim between tools built
Expand Down
1 change: 0 additions & 1 deletion prospector/formatters/vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class VSCodeFormatter(Formatter):

"""
This formatter outputs messages in the same way as vscode prospector linter expects.
"""
Expand Down
1 change: 0 additions & 1 deletion prospector/formatters/xunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class XunitFormatter(Formatter):

"""
This formatter outputs messages in the Xunit xml format, which is used by several
CI tools to parse output. This formatter is therefore a compatibility shim between tools built
Expand Down
1 change: 1 addition & 0 deletions prospector/suppression.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
This module's job is to attempt to collect all of these methods into
a single coherent list of error suppression locations.
"""

import re
import warnings
from collections import defaultdict
Expand Down
2 changes: 1 addition & 1 deletion prospector/tools/pylint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _get_pylint_configuration(
for p in find_default_config_files():
pylintrc = str(p)
break

if pylintrc is None: # nothing explicitly configured
for possible in (".pylintrc", "pylintrc", "pyproject.toml", "setup.cfg"):
pylintrc_path = os.path.join(prospector_config.workdir, possible)
Expand Down
1 change: 1 addition & 0 deletions tests/execution/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Tests that prospector raises the expected errors on the expected files depending on the
configuration of the file finder
"""

import shutil
import tempfile
from pathlib import Path
Expand Down

0 comments on commit 7b17a72

Please sign in to comment.