Skip to content

Commit 543ea14

Browse files
committed
chore(ci): add readthedocs config and resolve codacy annotation
1 parent 744e327 commit 543ea14

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.readthedocs.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.11"
7+
8+
sphinx:
9+
configuration: docs/source/conf.py
10+
11+
python:
12+
install:
13+
- requirements: docs/requirements.readthedocs.txt
14+
15+
formats: []

tests/callbacks_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
class ProbeCallback(Callback):
99
def __init__(self):
10+
"""Initialize probe callback state."""
1011
super(ProbeCallback, self).__init__()
1112
self.events = []
1213

@@ -25,6 +26,7 @@ def on_epoch_end(self, epoch, logs=None):
2526

2627
class TinyModel(torch.nn.Module):
2728
def __init__(self):
29+
"""Initialize a tiny torch module for callback tests."""
2830
super(TinyModel, self).__init__()
2931
self.linear = torch.nn.Linear(1, 1)
3032
self.stop_training = False

0 commit comments

Comments
 (0)