From 2d0c629476d90c0cd28960e4db9320e9ae44788c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20P=C3=A9rez-Garc=C3=ADa?= Date: Tue, 17 May 2022 14:17:01 +0100 Subject: [PATCH] Ensure files end with a newline (#347) --- .devcontainer/noop.txt | 2 +- SECURITY.md | 2 +- docs/source/authentication.md | 1 - docs/source/downloading.md | 2 +- docs/source/examples/9/tensorboard_env.yml | 2 +- docs/source/runner.md | 1 - docs/source/self_supervised_models.md | 2 +- docs/source/whole_slide_images.md | 1 - hi-ml-azure/.flake8 | 2 +- .../testazure/test_data/simple/hello_world_template.txt | 1 - hi-ml-histopathology/.flake8 | 2 +- hi-ml-histopathology/pytest.ini | 2 +- hi-ml/.flake8 | 2 +- hi-ml/other/image_loading/environment.yml | 2 +- 14 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.devcontainer/noop.txt b/.devcontainer/noop.txt index abee1954..82122ed2 100644 --- a/.devcontainer/noop.txt +++ b/.devcontainer/noop.txt @@ -1,3 +1,3 @@ This file is copied into the container along with environment.yml* from the parent folder. This is done to prevent the Dockerfile COPY instruction from -failing if no environment.yml is found. \ No newline at end of file +failing if no environment.yml is found. diff --git a/SECURITY.md b/SECURITY.md index f7b89984..926b8ae4 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -38,4 +38,4 @@ We prefer all communications to be in English. Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). - \ No newline at end of file + diff --git a/docs/source/authentication.md b/docs/source/authentication.md index e012a94e..67b72cc9 100644 --- a/docs/source/authentication.md +++ b/docs/source/authentication.md @@ -58,4 +58,3 @@ that ID: 1. Via the search bar, find "Azure Active Directory" and open it. 1. In the overview of that, you will see a field "Tenant ID" 1. Create an environment variable called `HIML_TENANT_ID`, and set that to the tenant ID you just saw. - diff --git a/docs/source/downloading.md b/docs/source/downloading.md index 68cb6dcc..daca7a31 100644 --- a/docs/source/downloading.md +++ b/docs/source/downloading.md @@ -84,4 +84,4 @@ Note that the path to local data must be a folder, not a single path. The folder following paths uploaded to your Datastore: ["baz/1.txt", "baz/2.txt"] This function takes additional parameters "overwrite" and "show_progress". If True, overwrite will overwrite any existing remote files with the same path. If False and there is a duplicate file, it will skip this file. -If show_progress is set to True, the progress of the file upload will be visible in the terminal. \ No newline at end of file +If show_progress is set to True, the progress of the file upload will be visible in the terminal. diff --git a/docs/source/examples/9/tensorboard_env.yml b/docs/source/examples/9/tensorboard_env.yml index 8937e84a..aeff1f52 100644 --- a/docs/source/examples/9/tensorboard_env.yml +++ b/docs/source/examples/9/tensorboard_env.yml @@ -7,4 +7,4 @@ dependencies: - python=3.7.3 - pytorch=1.4.0 - pip: - - tensorboard==2.2.1 \ No newline at end of file + - tensorboard==2.2.1 diff --git a/docs/source/runner.md b/docs/source/runner.md index 4a97b52f..25467c7f 100644 --- a/docs/source/runner.md +++ b/docs/source/runner.md @@ -194,4 +194,3 @@ class MyContainer(LightningContainer): To the optimizer and LR scheduler: the Lightning model returned by `create_model` should define its own `configure_optimizers` method, with the same signature as `LightningModule.configure_optimizers`, and returns a tuple containing the Optimizer and LRScheduler objects - diff --git a/docs/source/self_supervised_models.md b/docs/source/self_supervised_models.md index dfbeba28..aa6cc223 100644 --- a/docs/source/self_supervised_models.md +++ b/docs/source/self_supervised_models.md @@ -196,4 +196,4 @@ or for a local run ``` python ML/runner.py --model=CXRImageClassifier --local_weights_path={LOCAL_PATH_TO_YOUR_SSL_CHECKPOINT} -``` \ No newline at end of file +``` diff --git a/docs/source/whole_slide_images.md b/docs/source/whole_slide_images.md index c07b80c5..1369bb2e 100644 --- a/docs/source/whole_slide_images.md +++ b/docs/source/whole_slide_images.md @@ -99,4 +99,3 @@ Test code created tiles of size 224x224 pilfes, loaded the mask images, and used For cuCIM the total time was 4.7s, 2.48s to retain the tiles as a Numpy stack but not save them as pngs. cuCIM has the option of cacheing images, but is actually made performance slightly worse, possibly because the natural tile sizes in the original tiffs were larger than the tile sizes. For OpenSlide the comparable total times were 5.7s, and 3.26s. - diff --git a/hi-ml-azure/.flake8 b/hi-ml-azure/.flake8 index 2e9fc36c..d2e93ab7 100644 --- a/hi-ml-azure/.flake8 +++ b/hi-ml-azure/.flake8 @@ -1,4 +1,4 @@ [flake8] max-line-length = 120 max-complexity = 25 -ignore = E731 \ No newline at end of file +ignore = E731 diff --git a/hi-ml-azure/testazure/testazure/test_data/simple/hello_world_template.txt b/hi-ml-azure/testazure/testazure/test_data/simple/hello_world_template.txt index eb8c3e47..c3689f78 100644 --- a/hi-ml-azure/testazure/testazure/test_data/simple/hello_world_template.txt +++ b/hi-ml-azure/testazure/testazure/test_data/simple/hello_world_template.txt @@ -60,4 +60,3 @@ def main() -> None: if __name__ == "__main__": main() - diff --git a/hi-ml-histopathology/.flake8 b/hi-ml-histopathology/.flake8 index 2e9fc36c..d2e93ab7 100644 --- a/hi-ml-histopathology/.flake8 +++ b/hi-ml-histopathology/.flake8 @@ -1,4 +1,4 @@ [flake8] max-line-length = 120 max-complexity = 25 -ignore = E731 \ No newline at end of file +ignore = E731 diff --git a/hi-ml-histopathology/pytest.ini b/hi-ml-histopathology/pytest.ini index f05a4657..18cf9cee 100644 --- a/hi-ml-histopathology/pytest.ini +++ b/hi-ml-histopathology/pytest.ini @@ -7,4 +7,4 @@ addopts = --strict-markers markers = fast: Tests that should run very fast, and can act as smoke tests to see if something goes terribly wrong. gpu: Tests that should be executed both on a normal machine and on a machine with 2 GPUs. - flaky: Tests will automatically rerun if they fail. \ No newline at end of file + flaky: Tests will automatically rerun if they fail. diff --git a/hi-ml/.flake8 b/hi-ml/.flake8 index 2e9fc36c..d2e93ab7 100644 --- a/hi-ml/.flake8 +++ b/hi-ml/.flake8 @@ -1,4 +1,4 @@ [flake8] max-line-length = 120 max-complexity = 25 -ignore = E731 \ No newline at end of file +ignore = E731 diff --git a/hi-ml/other/image_loading/environment.yml b/hi-ml/other/image_loading/environment.yml index 8d71ad14..e285fdd5 100644 --- a/hi-ml/other/image_loading/environment.yml +++ b/hi-ml/other/image_loading/environment.yml @@ -8,4 +8,4 @@ dependencies: - line_profiler==3.3.1 - monai[all]==0.7.0 - opencv-python-headless==4.5.4.58 - - simpleitk==1.2.4 \ No newline at end of file + - simpleitk==1.2.4