From e1b88bc9b87ad0dbb10ed9843c51052d26c7a814 Mon Sep 17 00:00:00 2001 From: Pip Liggins Date: Tue, 1 Oct 2024 10:03:10 +0200 Subject: [PATCH] Linting changes --- .coveragerc | 2 +- .readthedocs.yaml | 2 -- .vscode/settings.json | 2 +- docs/adtl.rst | 2 +- docs/getting_started/installation.md | 1 - docs/index.md | 2 +- docs/transformations.rst | 2 +- schemas/dev.schema.json | 2 +- tests/parsers/epoch-web-schema.json | 2 +- tests/parsers/epoch.yml | 4 ++-- tests/parsers/skip_field.json | 2 +- tests/schemas/epoch-data.schema.json | 2 +- tests/schemas/epoch-oneOf.schema.json | 2 +- tests/schemas/observation_defaultif.schema.json | 2 +- tests/sources/oneToMany.csv | 2 +- 15 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.coveragerc b/.coveragerc index 3ad2277..06caa1b 100644 --- a/.coveragerc +++ b/.coveragerc @@ -3,5 +3,5 @@ omit = tests/* [report] -exclude_also = +exclude_also = if __name__ == .__main__.: diff --git a/.readthedocs.yaml b/.readthedocs.yaml index b35c772..c542ae6 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -31,5 +31,3 @@ python: install: - method: pip path: .[docs] - - diff --git a/.vscode/settings.json b/.vscode/settings.json index 7569a5b..5d2e2cb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,4 +12,4 @@ "editor.defaultFormatter": "ms-python.black-formatter" }, "python.testing.cwd": "${workspaceFolder}" -} \ No newline at end of file +} diff --git a/docs/adtl.rst b/docs/adtl.rst index 8dd2e4b..d6247f8 100644 --- a/docs/adtl.rst +++ b/docs/adtl.rst @@ -3,4 +3,4 @@ Module reference ===================== .. autoclass:: adtl.Parser - :members: \ No newline at end of file + :members: diff --git a/docs/getting_started/installation.md b/docs/getting_started/installation.md index 0ab0748..dae4cc9 100644 --- a/docs/getting_started/installation.md +++ b/docs/getting_started/installation.md @@ -26,4 +26,3 @@ If you are writing code which depends on adtl (instead of using the command-line program), then it is best to add a dependency on `git+https://github.com/globaldothealth/adtl` to your Python build tool of choice. - diff --git a/docs/index.md b/docs/index.md index da5b831..0bb9afc 100644 --- a/docs/index.md +++ b/docs/index.md @@ -47,4 +47,4 @@ maxdepth: 1 adtl transformations -``` \ No newline at end of file +``` diff --git a/docs/transformations.rst b/docs/transformations.rst index d8c9032..be0c85f 100644 --- a/docs/transformations.rst +++ b/docs/transformations.rst @@ -3,4 +3,4 @@ Transformations ===================== .. automodule:: adtl.transformations - :members: \ No newline at end of file + :members: diff --git a/schemas/dev.schema.json b/schemas/dev.schema.json index c794ca8..3624c12 100644 --- a/schemas/dev.schema.json +++ b/schemas/dev.schema.json @@ -226,4 +226,4 @@ } } } -} \ No newline at end of file +} diff --git a/tests/parsers/epoch-web-schema.json b/tests/parsers/epoch-web-schema.json index 8f58f18..d8c0e66 100644 --- a/tests/parsers/epoch-web-schema.json +++ b/tests/parsers/epoch-web-schema.json @@ -24,4 +24,4 @@ "field": "Text" } } -} \ No newline at end of file +} diff --git a/tests/parsers/epoch.yml b/tests/parsers/epoch.yml index f548dce..4f0672f 100644 --- a/tests/parsers/epoch.yml +++ b/tests/parsers/epoch.yml @@ -1,11 +1,11 @@ adtl: name: default-date-format description: Tests default date format - defaultDateFormat: %d/%m/%Y + defaultDateFormat: "%d/%m/%Y" tables: - table: { kind: oneToOne, schema: ../schemas/epoch-data.schema.json } table: id: { field: Entry_ID } epoch: { field: Epoch } some_date: { field: SomeDate } - text: { field: Text } \ No newline at end of file + text: { field: Text } diff --git a/tests/parsers/skip_field.json b/tests/parsers/skip_field.json index 97079cc..3998743 100644 --- a/tests/parsers/skip_field.json +++ b/tests/parsers/skip_field.json @@ -31,4 +31,4 @@ "can_skip": true } } -} \ No newline at end of file +} diff --git a/tests/schemas/epoch-data.schema.json b/tests/schemas/epoch-data.schema.json index abdc5f7..8433465 100644 --- a/tests/schemas/epoch-data.schema.json +++ b/tests/schemas/epoch-data.schema.json @@ -29,4 +29,4 @@ "description": "Follow-up cough field" } } -} \ No newline at end of file +} diff --git a/tests/schemas/epoch-oneOf.schema.json b/tests/schemas/epoch-oneOf.schema.json index 2c67d56..4a29d22 100644 --- a/tests/schemas/epoch-oneOf.schema.json +++ b/tests/schemas/epoch-oneOf.schema.json @@ -58,4 +58,4 @@ "description": "sex" } } -} \ No newline at end of file +} diff --git a/tests/schemas/observation_defaultif.schema.json b/tests/schemas/observation_defaultif.schema.json index 525f42c..ba16658 100644 --- a/tests/schemas/observation_defaultif.schema.json +++ b/tests/schemas/observation_defaultif.schema.json @@ -72,4 +72,4 @@ ] } } -} \ No newline at end of file +} diff --git a/tests/sources/oneToMany.csv b/tests/sources/oneToMany.csv index d74ea7b..fff0d1d 100644 --- a/tests/sources/oneToMany.csv +++ b/tests/sources/oneToMany.csv @@ -1,2 +1,2 @@ dt,headache_cmyn,cough_cmyn,dyspnea_cmyn -2022-02-05,1,1,0 \ No newline at end of file +2022-02-05,1,1,0