Skip to content

Commit fe8130a

Browse files
authored
chore: upgrade mypy and ruff (#306)
upgrade mypy and ruff Signed-off-by: gruebel <[email protected]>
1 parent 65ea9dd commit fe8130a

File tree

7 files changed

+28
-18
lines changed

7 files changed

+28
-18
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
default_stages: [pre-commit]
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.12.7
4+
rev: v0.13.2
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

hooks/openfeature-hooks-opentelemetry/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
2727
[dependency-groups]
2828
dev = [
2929
"coverage[toml]>=7.10.0,<8.0.0",
30-
"mypy[faster-cache]>=1.17.0,<2.0.0",
30+
"mypy>=1.18.0,<2.0.0",
3131
"pytest>=8.4.0,<9.0.0",
3232
]
3333

@@ -43,7 +43,9 @@ files = "src"
4343
python_version = "3.9" # should be identical to the minimum supported version
4444
namespace_packages = true
4545
explicit_package_bases = true
46-
local_partial_types = true
46+
local_partial_types = true # will become the new default from version 2
47+
allow_redefinition_new = true # will become the new default from version 2
48+
fixed_format_cache = true # new caching mechanism
4749
pretty = true
4850

4951
strict = true

providers/openfeature-provider-env-var/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
2626
[dependency-groups]
2727
dev = [
2828
"coverage[toml]>=7.10.0,<8.0.0",
29-
"mypy[faster-cache]>=1.17.0,<2.0.0",
29+
"mypy>=1.18.0,<2.0.0",
3030
"pytest>=8.4.0,<9.0.0",
3131
]
3232

@@ -42,7 +42,9 @@ files = "src"
4242
python_version = "3.9" # should be identical to the minimum supported version
4343
namespace_packages = true
4444
explicit_package_bases = true
45-
local_partial_types = true
45+
local_partial_types = true # will become the new default from version 2
46+
allow_redefinition_new = true # will become the new default from version 2
47+
fixed_format_cache = true # new caching mechanism
4648
pretty = true
4749

4850
strict = true

providers/openfeature-provider-flagd/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dev = [
3636
"asserts>=0.13.0,<0.14.0",
3737
"coverage[toml]>=7.10.0,<8.0.0",
3838
"grpcio-health-checking>=1.74.0,<2.0.0",
39-
"mypy[faster-cache]>=1.17.0,<2.0.0",
39+
"mypy>=1.18.0,<2.0.0",
4040
"pytest>=8.4.0,<9.0.0",
4141
"pytest-bdd>=8.1.0,<9.0.0",
4242
"testcontainers>=4.12.0,<5.0.0",
@@ -87,7 +87,9 @@ files = "src"
8787
python_version = "3.9" # should be identical to the minimum supported version
8888
namespace_packages = true
8989
explicit_package_bases = true
90-
local_partial_types = true
90+
local_partial_types = true # will become the new default from version 2
91+
allow_redefinition_new = true # will become the new default from version 2
92+
fixed_format_cache = true # new caching mechanism
9193
pretty = true
9294

9395
strict = true

providers/openfeature-provider-flipt/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
2727
[dependency-groups]
2828
dev = [
2929
"coverage[toml]>=7.10.0,<8.0.0",
30-
"mypy[faster-cache]>=1.17.0,<2.0.0",
30+
"mypy>=1.18.0,<2.0.0",
3131
"pytest>=8.4.0,<9.0.0",
3232
"requests-mock>=1.12.0,<2.0.0",
3333
"types-requests>=2.32.0,<3.0.0",
@@ -50,7 +50,9 @@ files = "src"
5050
python_version = "3.9" # should be identical to the minimum supported version
5151
namespace_packages = true
5252
explicit_package_bases = true
53-
local_partial_types = true
53+
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

5658
strict = true

providers/openfeature-provider-ofrep/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
2828
[dependency-groups]
2929
dev = [
3030
"coverage[toml]>=7.10.0,<8.0.0",
31-
"mypy[faster-cache]>=1.17.0,<2.0.0",
31+
"mypy>=1.18.0,<2.0.0",
3232
"pytest>=8.4.0,<9.0.0",
3333
"requests-mock>=1.12.0,<2.0.0",
3434
"types-requests>=2.32.0,<3.0.0",
@@ -56,7 +56,9 @@ files = "src"
5656
python_version = "3.9" # should be identical to the minimum supported version
5757
namespace_packages = true
5858
explicit_package_bases = true
59-
local_partial_types = true
59+
local_partial_types = true # will become the new default from version 2
60+
allow_redefinition_new = true # will become the new default from version 2
61+
fixed_format_cache = true # new caching mechanism
6062
pretty = true
6163

6264
strict = true

uv.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)