Skip to content

Commit

Permalink
make black happy
Browse files Browse the repository at this point in the history
  • Loading branch information
DallanQ committed May 16, 2024
1 parent e9877d3 commit ccd3b13
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sphinx configuration."""

project = "Server"
author = "Dallan Quass"
copyright = "2023, Dallan Quass"
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nox sessions."""

import os
import shlex
import shutil
Expand Down
1 change: 1 addition & 0 deletions server/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Command-line interface."""

import click


Expand Down
9 changes: 6 additions & 3 deletions server/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Server."""

import logging.config
import os
import random
Expand Down Expand Up @@ -163,9 +164,11 @@ async def search(
author=res["metadata"]["author"],
year=res["metadata"]["year"],
month=res["metadata"]["month"],
url=f'{res["metadata"]["url"]}#{res["metadata"]["anchor"]}'
if "anchor" in res["metadata"] and res["metadata"]["anchor"]
else res["metadata"]["url"],
url=(
f'{res["metadata"]["url"]}#{res["metadata"]["anchor"]}'
if "anchor" in res["metadata"] and res["metadata"]["anchor"]
else res["metadata"]["url"]
),
)
for res in query_response["matches"]
],
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test cases for the CLI."""

import pytest
from click.testing import CliRunner

Expand Down

0 comments on commit ccd3b13

Please sign in to comment.