From 3fd6b1c0b4d939dfc29f996940729edf45b5bccf Mon Sep 17 00:00:00 2001 From: pre-commit Date: Fri, 1 Mar 2024 16:04:42 +0000 Subject: [PATCH 1/2] pre-commit: Autoupdate --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bab4c953..73de69f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.2 + rev: v0.3.0 hooks: - id: ruff args: ["--show-source"] From c88f2c0dab2c42c15a83ffb6670aa884368a28d5 Mon Sep 17 00:00:00 2001 From: pre-commit Date: Wed, 6 Mar 2024 14:35:01 +0100 Subject: [PATCH 2/2] pre-commit: Mass-apply ruff formatter --- tests/integration/test_httplib2.py | 1 + tests/integration/test_requests.py | 1 + tests/integration/test_tornado.py | 1 + vcr/patch.py | 1 + vcr/stubs/aiohttp_stubs.py | 1 + vcr/stubs/boto3_stubs.py | 1 + vcr/stubs/tornado_stubs.py | 1 + 7 files changed, 7 insertions(+) diff --git a/tests/integration/test_httplib2.py b/tests/integration/test_httplib2.py index 562c35c7..37eeeeb5 100644 --- a/tests/integration/test_httplib2.py +++ b/tests/integration/test_httplib2.py @@ -1,4 +1,5 @@ """Integration tests with httplib2""" + from urllib.parse import urlencode import pytest diff --git a/tests/integration/test_requests.py b/tests/integration/test_requests.py index 10cbd211..dbde0d48 100644 --- a/tests/integration/test_requests.py +++ b/tests/integration/test_requests.py @@ -1,4 +1,5 @@ """Test requests' interaction with vcr""" + import pytest import vcr diff --git a/tests/integration/test_tornado.py b/tests/integration/test_tornado.py index 0d846cc1..8de8d3d3 100644 --- a/tests/integration/test_tornado.py +++ b/tests/integration/test_tornado.py @@ -1,4 +1,5 @@ """Test requests' interaction with vcr""" + import asyncio import functools import inspect diff --git a/vcr/patch.py b/vcr/patch.py index c373641b..256a58c6 100644 --- a/vcr/patch.py +++ b/vcr/patch.py @@ -1,4 +1,5 @@ """Utilities for patching in cassettes""" + import contextlib import functools import http.client as httplib diff --git a/vcr/stubs/aiohttp_stubs.py b/vcr/stubs/aiohttp_stubs.py index 50faf221..9b07b9d1 100644 --- a/vcr/stubs/aiohttp_stubs.py +++ b/vcr/stubs/aiohttp_stubs.py @@ -1,4 +1,5 @@ """Stubs for aiohttp HTTP clients""" + import asyncio import functools import json diff --git a/vcr/stubs/boto3_stubs.py b/vcr/stubs/boto3_stubs.py index 37fd9e32..f1f09068 100644 --- a/vcr/stubs/boto3_stubs.py +++ b/vcr/stubs/boto3_stubs.py @@ -1,4 +1,5 @@ """Stubs for boto3""" + from botocore.awsrequest import AWSHTTPConnection as HTTPConnection from botocore.awsrequest import AWSHTTPSConnection as VerifiedHTTPSConnection diff --git a/vcr/stubs/tornado_stubs.py b/vcr/stubs/tornado_stubs.py index 7f61da7d..aee28909 100644 --- a/vcr/stubs/tornado_stubs.py +++ b/vcr/stubs/tornado_stubs.py @@ -1,4 +1,5 @@ """Stubs for tornado HTTP clients""" + import functools from io import BytesIO