diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6106d7668..ea8446140 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.277" + rev: "v0.0.278" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/tests/unit/activation/conftest.py b/tests/unit/activation/conftest.py index 04946f9c3..4811d0727 100644 --- a/tests/unit/activation/conftest.py +++ b/tests/unit/activation/conftest.py @@ -84,7 +84,7 @@ def __call__(self, monkeypatch, tmp_path): assert not exception.returncode, output # noqa: PT017 return None - out = re.sub(r"pydev debugger: process \d+ is connecting\n\n", "", raw, re.M).strip().splitlines() + out = re.sub(r"pydev debugger: process \d+ is connecting\n\n", "", raw, flags=re.MULTILINE).strip().splitlines() self.assert_output(out, raw, tmp_path) return env, activate_script