Skip to content
Permalink
Browse files

Update to latest black (#609)

  • Loading branch information...
simonw committed Oct 30, 2019
1 parent f4c0830 commit 5dd4d2b2d3abcfd507a6df47e7c2fbad3c552fd8
Showing with 12 additions and 8 deletions.
  1. +6 −3 datasette/views/base.py
  2. +4 −3 datasette/views/table.py
  3. +1 −1 setup.py
  4. +1 −1 tests/test_api.py
@@ -257,9 +257,12 @@ def get_templates(self, database, table=None):
assert NotImplemented

async def get(self, request, db_name, **kwargs):
database, hash, correct_hash_provided, should_redirect = await self.resolve_db_name(
request, db_name, **kwargs
)
(
database,
hash,
correct_hash_provided,
should_redirect,
) = await self.resolve_db_name(request, db_name, **kwargs)
if should_redirect:
return self.redirect(request, should_redirect, remove_args={"_hash"})

@@ -586,9 +586,10 @@ class TableView(RowTableShared):
)

for facet in facet_instances:
instance_facet_results, instance_facets_timed_out = (
await facet.facet_results()
)
(
instance_facet_results,
instance_facets_timed_out,
) = await facet.facet_results()
facet_results.update(instance_facet_results)
facets_timed_out.extend(instance_facets_timed_out)

@@ -25,7 +25,7 @@ def get_version():
# Only install black on Python 3.6 or higher
maybe_black = []
if sys.version_info > (3, 6):
maybe_black = ["black"]
maybe_black = ["black~=19.10b0"]

setup(
name="datasette",
@@ -1245,7 +1245,7 @@ def test_config_json(app_client):


def test_page_size_matching_max_returned_rows(
app_client_returned_rows_matches_page_size
app_client_returned_rows_matches_page_size,
):
fetched = []
path = "/fixtures/no_primary_key.json"

0 comments on commit 5dd4d2b

Please sign in to comment.
You can’t perform that action at this time.