Skip to content

Commit b418cb0

Browse files
authored
chore: update mypy and ruff (#536)
Signed-off-by: gruebel <[email protected]>
1 parent 0e0f018 commit b418cb0

File tree

4 files changed

+156
-124
lines changed

4 files changed

+156
-124
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
default_stages: [pre-commit]
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.12.4
4+
rev: v0.13.0
55
hooks:
66
- id: ruff-check
77
args: [--fix]
88
- id: ruff-format
99

1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v5.0.0
11+
rev: v6.0.0
1212
hooks:
1313
- id: check-toml
1414
- id: check-yaml
1515
- id: trailing-whitespace
1616
- id: check-merge-conflict
1717

1818
- repo: https://github.com/pre-commit/mirrors-mypy
19-
rev: v1.17.1
19+
rev: v1.18.1
2020
hooks:
2121
- id: mypy
2222
files: openfeature

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ python_version = "3.9" # should be identical to the minimum supported version
5151
namespace_packages = true
5252
explicit_package_bases = true
5353
local_partial_types = true # will become the new default from version 2
54+
allow_redefinition_new = true # will become the new default from version 2
55+
fixed_format_cache = true # new caching mechanism
5456
pretty = true
5557
strict = true
5658
disallow_any_generics = false

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def test_client_should_merge_contexts():
543543
client.get_boolean_details(flag_input, flag_default, invocation_context)
544544

545545
# Retrieve the call arguments
546-
args, kwargs = provider.resolve_boolean_details.call_args
546+
_, kwargs = provider.resolve_boolean_details.call_args
547547
flag_key, default_value, context = (
548548
kwargs["flag_key"],
549549
kwargs["default_value"],

0 commit comments

Comments
 (0)