Skip to content

Commit

Permalink
Fix new linting and type issues (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Dec 26, 2023
1 parent b7e9dbf commit 178fea2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion noxfile.py
Expand Up @@ -29,7 +29,9 @@ def format(session):

@nox.session
def lint(session):
session.install("black", "isort", "flake8", "mypy", "types-certifi", "tomli")
session.install(
"black", "isort", "flake8", "mypy", "types-certifi", "tomli", "urllib3"
)
session.run("flake8", "--ignore=E501,W503", *SOURCE_PATHS)
session.run("black", "--check", *SOURCE_PATHS)
session.run("isort", "--check", "--profile=black", *SOURCE_PATHS)
Expand Down
2 changes: 1 addition & 1 deletion src/truststore/_api.py
Expand Up @@ -49,7 +49,7 @@ def extract_from_ssl() -> None:
try:
import urllib3.util.ssl_ as urllib3_ssl

urllib3_ssl.SSLContext = _original_SSLContext
urllib3_ssl.SSLContext = _original_SSLContext # type: ignore[assignment]
except ImportError:
pass

Expand Down

0 comments on commit 178fea2

Please sign in to comment.