Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions nigsp/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down