Skip to content

Commit

Permalink
ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Sep 24, 2024
1 parent e8d9a59 commit 45a3cf9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion tests/data_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 0 additions & 1 deletion tests/test_slugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion uk_election_ids/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45a3cf9

Please sign in to comment.