Skip to content

Commit 6e16a25

Browse files
committed
lint
1 parent 7b30441 commit 6e16a25

File tree

7 files changed

+802
-1645
lines changed

7 files changed

+802
-1645
lines changed

src/semsql/builder/builder.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class DockerConfig:
2828
memory: str = None
2929

3030

31-
def make(target: str, docker_config: Optional[DockerConfig] = None, prefix_csv_path = None):
31+
def make(
32+
target: str, docker_config: Optional[DockerConfig] = None, prefix_csv_path=None
33+
):
3234
"""
3335
Builds a target such as a SQLite file using the build.Makefile
3436
@@ -93,7 +95,7 @@ def download_obo_sqlite(ontology: str, destination: str):
9395
db = f"{ontology}.db"
9496
url = f"https://s3.amazonaws.com/bbop-sqlite/{db}.gz"
9597
logging.info(f"Downloading from {url}")
96-
r = requests.get(url, allow_redirects=True)
98+
r = requests.get(url, allow_redirects=True, timeout=3600)
9799
destination_gzip = f"{destination}.gz"
98100
open(destination_gzip, "wb").write(r.content)
99101
with gzip.open(destination_gzip, "rb") as f_in:

src/semsql/builder/cli.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ def main(verbose: int, quiet: bool):
3333
show_default=True,
3434
help="Uses ODK docker image",
3535
)
36-
@click.option(
37-
"--prefix-csv-path",
38-
"-P",
39-
help="path to csv of prefix expansions"
40-
)
36+
@click.option("--prefix-csv-path", "-P", help="path to csv of prefix expansions")
4137
def make(path, docker, **kwargs):
4238
"""
4339
Makes a specified target, such as a db file

src/semsql/builder/registry/registry_schema.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
326326

327327
# Enumerations
328328
class FormatEnum(EnumDefinitionImpl):
329-
330329
n3 = PermissibleValue(text="n3", description="n3")
331330

332331
_defn = EnumDefinition(
@@ -335,7 +334,6 @@ class FormatEnum(EnumDefinitionImpl):
335334

336335

337336
class CompressionEnum(EnumDefinitionImpl):
338-
339337
gzip = PermissibleValue(text="gzip", description="gzip")
340338

341339
_defn = EnumDefinition(

0 commit comments

Comments
 (0)