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:
Fernando Pérez-García 2022-04-04 15:08:43 +01:00 коммит произвёл GitHub
Родитель 2edbdc8d64
Коммит 6aab3b1f93
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
51 изменённых файлов: 47 добавлений и 51 удалений

1
.github/workflows/codeql-analysis.yml поставляемый
Просмотреть файл

@ -54,4 +54,3 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

4
.vscode/settings.json поставляемый
Просмотреть файл

@ -5,5 +5,7 @@
],
"python.testing.unittestEnabled": false,
"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
from Tests.ML.models.architectures.DummyScalarModel import DummyScalarModel
return DummyScalarModel(self.expected_image_size_zyx)

Просмотреть файл

@ -165,4 +165,3 @@ class BiTResNetV2(nn.Module):
x = self.conv_stack(x)
x = self.linear(x)
return x

Просмотреть файл

@ -1,4 +1,3 @@
1,2,crop_sizes
[ 37 37 37],[ 37 37 37],"[55, 55, 55]"
[ 37 37 37],[ 37 37 37],"[55, 55, 55]"

1 1 2 crop_sizes
2 [ 37 37 37] [ 37 37 37] [55, 55, 55]
3 [ 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 np.isclose(optimal_temperature, 1.44, rtol=0.1)
assert model.temperature.requires_grad is False

Просмотреть файл

@ -252,4 +252,3 @@ class Container2(LightningContainer):
# These arguments will be passed through to the Lightning trainer.
return {"gradient_clip_val": 1, "limit_train_batches": 10}
```