From 45a3cf9d1692bcd02339410916a560a0e265f58c Mon Sep 17 00:00:00 2001 From: chris48s Date: Tue, 24 Sep 2024 10:45:38 +0100 Subject: [PATCH] ruff format --- setup.py | 2 +- tests/data_schemas.py | 7 ++++++- tests/test_slugger.py | 1 - uk_election_ids/parser.py | 1 - 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 527bcfc..76ce6b4 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ def _get_description(): "docs": [ "sphinx==7.1.2", "sphinx_rtd_theme==2.0.0", - "ghp-import==2.1.0" + "ghp-import==2.1.0", ], "development": [ "pydantic==1.10.18", diff --git a/tests/data_schemas.py b/tests/data_schemas.py index f4914ed..e62840e 100644 --- a/tests/data_schemas.py +++ b/tests/data_schemas.py @@ -41,6 +41,11 @@ def _recurse_defaults(d: dict): if __name__ == "__main__": - data = Path(__file__).parent.parent / "uk_election_ids" / "data" /"voting_systems.json" + data = ( + Path(__file__).parent.parent + / "uk_election_ids" + / "data" + / "voting_systems.json" + ) schema = VotingSystemSchema.parse_file(data) VotingSystemSchema.validate(schema) diff --git a/tests/test_slugger.py b/tests/test_slugger.py index 843ed9d..2ca7f30 100644 --- a/tests/test_slugger.py +++ b/tests/test_slugger.py @@ -6,7 +6,6 @@ class TestSlugify(TestCase): - """ For this particular use-case, we are primarily concerned with 1. Slugging characters that appear in names of places in the UK sensibly diff --git a/uk_election_ids/parser.py b/uk_election_ids/parser.py index 52ddb2d..95239a3 100644 --- a/uk_election_ids/parser.py +++ b/uk_election_ids/parser.py @@ -4,7 +4,6 @@ class DataPackageParser: - """ Parser which uses the data in datapackage.py to build a dict of IdSpec() objects which describe what sort of