diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f6e5c4..35739fa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,12 +21,12 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.2 + rev: v0.15.9 hooks: - id: ruff name: ruff linter diff --git a/nigsp/conftest.py b/nigsp/conftest.py index 089f298..78015a9 100644 --- a/nigsp/conftest.py +++ b/nigsp/conftest.py @@ -53,10 +53,8 @@ def fetch_file(osf_id, path, filename): # this three lines make tests downloads work in windows if os.name == "nt": orig_sslsocket_init = ssl.SSLSocket.__init__ - ssl.SSLSocket.__init__ = ( - lambda *args, cert_reqs=ssl.CERT_NONE, **kwargs: orig_sslsocket_init( - *args, cert_reqs=ssl.CERT_NONE, **kwargs - ) + ssl.SSLSocket.__init__ = lambda *args, cert_reqs=ssl.CERT_NONE, **kwargs: ( + orig_sslsocket_init(*args, cert_reqs=ssl.CERT_NONE, **kwargs) ) ssl._create_default_https_context = ssl._create_unverified_context url = f"https://osf.io/{osf_id}/download"