-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathtox.toml
More file actions
110 lines (104 loc) · 2.25 KB
/
tox.toml
File metadata and controls
110 lines (104 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
requires = ["tox>=4.19"]
env_list = ["3.14", "3.13", "3.12", "3.11", "3.10", "3.9", "black"]
[pytest_collect]
description = "Only try to collect changes under python {base_python} to make sure test collection is ok."
deps = [
"pytest",
"mock",
"pytest-mock",
"sympy",
"gmsh",
"pyuff",
"deap",
"smoot",
"git+https://github.com/mxgnsr/SciDataTool/tree/update-reqs.git",
]
# commands_pre = [""]
commands = [["pytest", "--co"]]
[env_run_base]
description = "Run test under {base_python}"
deps = [
"pytest",
"mock",
"pytest-mock",
"sympy",
"gmsh",
"pyuff",
"deap",
"smoot",
"swat-em",
"ddt",
"nbformat",
"nbconvert",
]
commands_pre = [
[
"pip",
"uninstall",
"scidatatool",
"-y",
],
[
"pip",
"install",
"git+https://github.com/mxgnsr/SciDataTool.git@update-reqs",
],
]
commands = [["pytest",{ replace = "posargs", default = ["Tests"], extend = true }]]
[env.3.14]
description = "Run test under python 3.14 without smoot because smt can not build without MS compilers for 3.14"
deps = [
"pytest",
"mock",
"pytest-mock",
"sympy",
"gmsh",
"pyuff",
"deap",
# "smoot", -> fix for smt
"swat-em",
"ddt",
"nbformat",
"nbconvert",
]
commands_pre = [
[
"pip",
"uninstall",
"scidatatool",
"-y",
],
[
"pip",
"install",
"git+https://github.com/mxgnsr/SciDataTool.git@update-reqs",
],
]
commands = [
[
"pytest",
{ replace = "posargs", default = ["Tests"], extend = true },
"--ignore",
"Tests/Validation/Optimization/test_Binh_and_Korn_Bayes.py",
"--ignore",
"Tests/Validation/Optimization/test_zdt3_Bayes.py",
"--deselect=Tests/Classes/test_classes.py::test_class_methods[class_dict132]",
],
]
[env.black]
description = "run black linter on code base"
skip_install = true
deps = ["black>=24.0.0,<25.0.0"]
commands = [["black", "pyleecan"]]
# [env.type]
# description = "run type checks"
# deps = ["mypy"]
# commands = [
# [
# "mypy",
# { replace = "posargs", default = [
# "src",
# "tests",
# ], extend = true },
# ],
# ]