diff --git a/README.rst b/README.rst index 5a0ed8e..4f351ac 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ VCR.py 📼 ########### -|PyPI| |Python versions| |Build Status| |CodeCov| |Gitter| |CodeStyleBlack| +|PyPI| |Python versions| |Build Status| |CodeCov| |Gitter| ---- @@ -70,6 +70,3 @@ more details .. |CodeCov| image:: https://codecov.io/gh/kevin1024/vcrpy/branch/master/graph/badge.svg :target: https://codecov.io/gh/kevin1024/vcrpy :alt: Code Coverage Status -.. |CodeStyleBlack| image:: https://img.shields.io/badge/code%20style-black-000000.svg - :target: https://github.com/psf/black - :alt: Code Style: black diff --git a/pyproject.toml b/pyproject.toml index 4830452..7dec861 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,3 @@ -[tool.black] -line-length=110 - [tool.codespell] skip = '.git,*.pdf,*.svg,.tox' ignore-regex = "\\\\[fnrstv]" @@ -8,9 +5,7 @@ ignore-regex = "\\\\[fnrstv]" # ignore-words-list = '' [tool.pytest.ini_options] -markers = [ - "online", -] +markers = ["online"] [tool.ruff] select = [ @@ -30,4 +25,4 @@ line-length = 110 target-version = "py38" [tool.ruff.isort] -known-first-party = [ "vcr" ] +known-first-party = ["vcr"] diff --git a/tox.ini b/tox.ini index 6203513..3d85a1b 100644 --- a/tox.ini +++ b/tox.ini @@ -36,12 +36,10 @@ commands = [testenv:lint] skipsdist = True commands = - black --version - black --check --diff . ruff --version + ruff format --check . ruff check . deps = - black ruff basepython = python3.10 diff --git a/vcr/patch.py b/vcr/patch.py index f69ae76..a9e86bd 100644 --- a/vcr/patch.py +++ b/vcr/patch.py @@ -260,10 +260,14 @@ class CassettePatcherBuilder: yield cpool, "HTTPConnectionWithTimeout", VCRHTTPConnectionWithTimeout yield cpool, "HTTPSConnectionWithTimeout", VCRHTTPSConnectionWithTimeout - yield cpool, "SCHEME_TO_CONNECTION", { - "http": VCRHTTPConnectionWithTimeout, - "https": VCRHTTPSConnectionWithTimeout, - } + yield ( + cpool, + "SCHEME_TO_CONNECTION", + { + "http": VCRHTTPConnectionWithTimeout, + "https": VCRHTTPSConnectionWithTimeout, + }, + ) @_build_patchers_from_mock_triples_decorator def _tornado(self):