Skip to content

Commit bf40860

Browse files
committed
chore: update test dependencies for security fix
1 parent c56b421 commit bf40860

11 files changed

Lines changed: 91 additions & 55 deletions

File tree

packages/dtocean-app/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ include-groups = ["test-qt"]
6262

6363
[tool.poetry.group.test.dependencies]
6464
mock = "^5.1.0"
65-
pytest = "^8.3.4"
65+
pytest = "^9.0.3"
6666
pytest-mock = "^3.14.0"
6767
pytest-cov = "^6.0.0"
6868

packages/dtocean-core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ cartopy = "^0.25.0"
6666
optional = true
6767

6868
[tool.poetry.group.test.dependencies]
69-
pytest = "^8.3.4"
69+
pytest = "^9.0.3"
7070
pytest-mock = "^3.14.0"
7171
mock = "^5.1.0"
7272
pytest-cov = "^6.0.0"

packages/dtocean-docs/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ include = [{ path = "src/dtocean_docs/html", format = "wheel" }]
3434
optional = true
3535

3636
[tool.poetry.group.test.dependencies]
37-
pytest = "^8.3.4"
37+
pytest = "^9.0.3"
3838
pytest-cov = "^6.0.0"
3939
pytest-mock = "^3.14.0"
4040

packages/dtocean-dummy-module/pyproject.toml

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ classifiers = [
1515
"Programming Language :: Python :: 3.12",
1616
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
1717
"Operating System :: Microsoft :: Windows",
18-
"Operating System :: POSIX :: Linux"
18+
"Operating System :: POSIX :: Linux",
1919
]
20-
packages = [{include = "dtocean_dummy", from="src"}]
20+
packages = [{ include = "dtocean_dummy", from = "src" }]
2121

2222
[tool.poetry.urls]
2323
"Bug Tracker" = "https://github.com/DTOcean/dtocean/issues"
@@ -37,14 +37,14 @@ pandas = "^3.0.1"
3737
openpyxl = "^3.1.5"
3838
xlrd = "^2.0.1"
3939
xlwt = "^1.3.0"
40-
polite-config = {path = "../polite-config", develop = true}
40+
polite-config = { path = "../polite-config", develop = true }
4141
python-dateutil = "^2.9.0.post0"
4242

4343
[tool.poetry.group.test]
4444
optional = true
4545

4646
[tool.poetry.group.test.dependencies]
47-
pytest = "^8.3.4"
47+
pytest = "^9.0.3"
4848
pytest-cov = "^6.0.0"
4949

5050
[tool.poetry.group.audit]
@@ -78,22 +78,44 @@ description = "Run test under {base_python}"
7878
skip_install = true
7979
allowlist_externals = ["poetry"]
8080
commands_pre = [
81-
["poetry", "sync", "--only", "dtocean-dummy-module", "--only", "test"]
82-
]
83-
commands = [
84-
["poetry", "run", "pytest", "tests"]
81+
[
82+
"poetry",
83+
"sync",
84+
"--only",
85+
"dtocean-dummy-module",
86+
"--only",
87+
"test",
88+
],
8589
]
90+
commands = [["poetry", "run", "pytest", "tests"]]
8691

8792
[tool.tox.env.audit]
8893
description = "Run audit check on code base"
8994
skip_install = true
9095
allowlist_externals = ["poetry"]
9196
commands_pre = [
92-
["poetry", "sync", "--only", "dtocean-dummy-module", "--only", "audit"]
97+
[
98+
"poetry",
99+
"sync",
100+
"--only",
101+
"dtocean-dummy-module",
102+
"--only",
103+
"audit",
104+
],
93105
]
94106
commands = [
95-
["poetry", "run", "ruff", "check"],
96-
["poetry", "run", "pyright", "src"]
107+
[
108+
"poetry",
109+
"run",
110+
"ruff",
111+
"check",
112+
],
113+
[
114+
"poetry",
115+
"run",
116+
"pyright",
117+
"src",
118+
],
97119
]
98120

99121
[tool.ruff]

packages/dtocean-hydrodynamics/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ include-groups = ["test-qt"]
8282

8383
[tool.poetry.group.test.dependencies]
8484
mock = "^5.1.0"
85-
pytest = "^8.3.4"
85+
pytest = "^9.0.3"
8686
pytest-mock = "^3.14.0"
8787
pytest-cov = "^6.0.0"
8888

packages/dtocean-qt/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ optional = true
5858
include-groups = ["test-qt"]
5959

6060
[tool.poetry.group.test.dependencies]
61-
pytest = "^8.3.4"
61+
pytest = "^9.0.3"
6262
pytest-cov = "^6.0.0"
6363
pytest-env = "^1.1.5"
6464

packages/dtocean/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dtocean-hydrodynamics = { path = "../dtocean-hydrodynamics", develop = true }
3838
optional = true
3939

4040
[tool.poetry.group.test.dependencies]
41-
pytest = "^8.3.4"
41+
pytest = "^9.0.3"
4242
pytest-cov = "^6.0.0"
4343

4444
[tool.poetry.group.audit]

packages/mdo-engine/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ optional = true
5353
include-groups = ["dtocean-dummy-module"]
5454

5555
[tool.poetry.group.test.dependencies]
56-
pytest = "^8.3.4"
56+
pytest = "^9.0.3"
5757
pytest-mock = "^3.14.0"
5858
mock = "^5.1.0"
5959
pytest-cov = "^6.0.0"

packages/polite-config/pyproject.toml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pyyaml = "^6.0.2"
3535
optional = true
3636

3737
[tool.poetry.group.test.dependencies]
38-
pytest = "^8.3.4"
38+
pytest = "^9.0.3"
3939
pytest-cov = "^6.0.0"
4040
pytest-mock = "^3.14.0"
4141

@@ -112,23 +112,36 @@ env_list = ["3.14", "3.13", "3.12", "audit"]
112112
description = "Run test under {base_python}"
113113
skip_install = true
114114
allowlist_externals = ["poetry"]
115-
commands_pre = [
116-
["poetry", "sync", "--only", "polite-config", "--only", "test"]
117-
]
118-
commands = [
119-
["poetry", "run", "pytest", "tests"]
120-
]
115+
commands_pre = [["poetry", "sync", "--only", "polite-config", "--only", "test"]]
116+
commands = [["poetry", "run", "pytest", "tests"]]
121117

122118
[tool.tox.env.audit]
123119
description = "Run audit check on code base"
124120
skip_install = true
125121
allowlist_externals = ["poetry"]
126122
commands_pre = [
127-
["poetry", "sync", "--only", "polite-config", "--only", "audit"]
123+
[
124+
"poetry",
125+
"sync",
126+
"--only",
127+
"polite-config",
128+
"--only",
129+
"audit",
130+
],
128131
]
129132
commands = [
130-
["poetry", "run", "ruff", "check"],
131-
["poetry", "run", "pyright", "src"]
133+
[
134+
"poetry",
135+
"run",
136+
"ruff",
137+
"check",
138+
],
139+
[
140+
"poetry",
141+
"run",
142+
"pyright",
143+
"src",
144+
],
132145
]
133146

134147
[build-system]

poetry.lock

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

0 commit comments

Comments
 (0)