diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5e500f9f..500274ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,17 @@ repos: # Hooks that are run everywhere - repo: https://github.com/biomejs/pre-commit - rev: v2.3.15 + rev: v2.4.4 hooks: - id: biome-format # Hooks that are run for scripts - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.16.0 + rev: v2.16.2 hooks: - id: pyproject-fmt files: ^scripts/pyproject\.toml$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.1 + rev: v0.15.4 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml index 57c3ef3b..d4dba31a 100644 --- a/scripts/pyproject.toml +++ b/scripts/pyproject.toml @@ -99,4 +99,6 @@ filterwarnings = [ "error", # https://github.com/man-group/pytest-plugins/issues/224 "ignore::DeprecationWarning:pytest_shutil", + # https://github.com/psf/requests/issues/7219 + "ignore:urllib3.*or chardet.*doesn't match a supported version", ] diff --git a/{{cookiecutter.project_name}}/.pre-commit-config.yaml b/{{cookiecutter.project_name}}/.pre-commit-config.yaml index ce77fe6d..8e1715e4 100644 --- a/{{cookiecutter.project_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_name}}/.pre-commit-config.yaml @@ -7,16 +7,16 @@ default_stages: minimum_pre_commit_version: 2.16.0 repos: - repo: https://github.com/biomejs/pre-commit - rev: v2.3.15 + rev: v2.4.4 hooks: - id: biome-format exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually. - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.16.0 + rev: v2.16.2 hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.1 + rev: v0.15.4 hooks: - id: ruff-check types_or: [python, pyi, jupyter]