STYLE: Ensure line breaks at the end of all files (#717)
* Add line breaks at the end of all files * Handle last line in VS Code settings
This commit is contained in:
Родитель
2edbdc8d64
Коммит
6aab3b1f93
|
@ -54,4 +54,3 @@ jobs:
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v1
|
||||||
|
|
||||||
|
|
|
@ -5,5 +5,7 @@
|
||||||
],
|
],
|
||||||
"python.testing.unittestEnabled": false,
|
"python.testing.unittestEnabled": false,
|
||||||
"python.testing.pytestEnabled": true,
|
"python.testing.pytestEnabled": true,
|
||||||
"files.trimTrailingWhitespace": true
|
"files.trimTrailingWhitespace": true,
|
||||||
|
"files.trimFinalNewlines": true,
|
||||||
|
"files.insertFinalNewline": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,4 +49,3 @@ class DummyClassification(ScalarModelBase):
|
||||||
# Use a local import so that we don't need to import pytorch when creating configs in the runner
|
# Use a local import so that we don't need to import pytorch when creating configs in the runner
|
||||||
from Tests.ML.models.architectures.DummyScalarModel import DummyScalarModel
|
from Tests.ML.models.architectures.DummyScalarModel import DummyScalarModel
|
||||||
return DummyScalarModel(self.expected_image_size_zyx)
|
return DummyScalarModel(self.expected_image_size_zyx)
|
||||||
|
|
||||||
|
|
|
@ -165,4 +165,3 @@ class BiTResNetV2(nn.Module):
|
||||||
x = self.conv_stack(x)
|
x = self.conv_stack(x)
|
||||||
x = self.linear(x)
|
x = self.linear(x)
|
||||||
return x
|
return x
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
1,2,crop_sizes
|
1,2,crop_sizes
|
||||||
[ 37 37 37],[ 37 37 37],"[55, 55, 55]"
|
[ 37 37 37],[ 37 37 37],"[55, 55, 55]"
|
||||||
[ 37 37 37],[ 37 37 37],"[55, 55, 55]"
|
[ 37 37 37],[ 37 37 37],"[55, 55, 55]"
|
||||||
|
|
||||||
|
|
|
|
@ -42,4 +42,3 @@ def test_set_temperature() -> None:
|
||||||
assert after_ece.item() < before_ece.item()
|
assert after_ece.item() < before_ece.item()
|
||||||
assert np.isclose(optimal_temperature, 1.44, rtol=0.1)
|
assert np.isclose(optimal_temperature, 1.44, rtol=0.1)
|
||||||
assert model.temperature.requires_grad is False
|
assert model.temperature.requires_grad is False
|
||||||
|
|
||||||
|
|
|
@ -252,4 +252,3 @@ class Container2(LightningContainer):
|
||||||
# These arguments will be passed through to the Lightning trainer.
|
# These arguments will be passed through to the Lightning trainer.
|
||||||
return {"gradient_clip_val": 1, "limit_train_batches": 10}
|
return {"gradient_clip_val": 1, "limit_train_batches": 10}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче