Skip to content

Commit 332d04c

Browse files
committed
Remove additional files adding contents to pyproject.toml
1 parent 0694718 commit 332d04c

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

examples/Optuna/PyTorch/simvue_optuna_pytorch.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def define_model(trial):
9797

9898

9999
def objective(trial):
100-
101100
# Generate the model.
102101
model = define_model(trial).to(DEVICE)
103102

@@ -117,7 +116,6 @@ def objective(trial):
117116

118117
# Training of the model.
119118
for epoch in range(EPOCHS):
120-
121119
train(optimizer, model, train_loader)
122120
val_accuracy = validate(model, valid_loader)
123121
trial.report(val_accuracy, epoch)

examples/Tensorflow/dynamic_rnn.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@
1414

1515

1616
if __name__ == "__main__":
17-
1817
# Dataset parameters.
1918
num_classes = 2 # linear sequence or not.
2019
seq_max_len = 20 # Maximum sequence length.
2120
seq_min_len = 5 # Minimum sequence length (before padding).
22-
masking_val = (
23-
-1
24-
) # -1 will represents the mask and be used to pad sequences to a common max length.
21+
masking_val = -1 # -1 will represents the mask and be used to pad sequences to a common max length.
2522
max_value = 10000 # Maximum int value.
2623

2724
# Training Parameters

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,28 @@ priority = "supplemental"
5151
[[tool.poetry.source]]
5252
name = "PyPI"
5353
priority = "primary"
54+
55+
56+
[tool.ruff]
57+
lint.extend-select = ["C901"]
58+
lint.mccabe.max-complexity = 11
59+
60+
[tool.pytest.ini_options]
61+
addopts = "-p no:warnings --cov=simvue"
62+
testpaths = [
63+
"tests"
64+
]
65+
markers = [
66+
"client: tests of Simvue client",
67+
"converters: tests for Simvue object converters",
68+
"dispatch: test data dispatcher",
69+
"run: test the simvue Run class",
70+
"utilities: test simvue utilities module",
71+
"scenario: test scenarios"
72+
]
73+
74+
[tool.interrogate]
75+
ignore-init-method = true
76+
fail-under = 95
77+
verbose = 1
78+
exclude = ["docs", "tests", "multiparser/typing.py"]

pytest.ini

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)