Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Commit 07f4f77

Browse files
committed
Add Ruff UP rules
1 parent aeed822 commit 07f4f77

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ module = "halo.*"
1010
ignore_missing_imports = true
1111

1212
[tool.ruff]
13-
extend-select = ["I"]
13+
target-version = "py38"
14+
extend-select = ["I", "UP"]
1415
ignore = ["E501"]
1516
per-file-ignores = {"tests/test_init.py" = ["F401"]}
1617

tests/test_pkce.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
def test_get_code_verifier():
77
code = get_code_verifier()
8-
assert type(code) == str
8+
assert isinstance(code, str)
99
assert len(code) == 128
1010

1111

@@ -18,7 +18,7 @@ def test_get_code_verifier():
1818
)
1919
def test_code_challenge(code: str, method: Method):
2020
challenge = get_code_challenge(code, method)
21-
assert type(challenge) == str
21+
assert isinstance(challenge, str)
2222

2323
if method == "plain":
2424
assert challenge == code

0 commit comments

Comments
 (0)