Skip to content

Commit a568612

Browse files
committed
format: run black
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
1 parent b7a8ef2 commit a568612

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

f4pga/setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ def read(fname):
3333
description="SymbiFlow Tools Data Manager",
3434
python_requires=">=3.6",
3535
url="https://github.com/SymbiFlow/symbiflow-tools-data-manager.git",
36-
entry_points={
37-
"console_scripts": ["symbiflow_get_latest_artifact_url=stdm.__init__:main"]
38-
},
36+
entry_points={"console_scripts": ["symbiflow_get_latest_artifact_url=stdm.__init__:main"]},
3937
install_requires=[
4038
"requests",
4139
],

f4pga/tdm/__init__.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323

2424

2525
# For now we use only `symbiflow-arch-defs` and download tarballs
26-
def get_latest_artifact_url(
27-
project="symbiflow-arch-defs", build_name="install", jobset="continuous"
28-
):
26+
def get_latest_artifact_url(project="symbiflow-arch-defs", build_name="install", jobset="continuous"):
2927
# Handle case in which there is build_name is absent
3028
if build_name:
3129
build_name = f"/{build_name}"
@@ -78,9 +76,7 @@ def get_latest_artifact_url(
7876

7977

8078
def main():
81-
parser = argparse.ArgumentParser(
82-
description="Retrieves the latest artifacts of SymbiFlow-related CIs."
83-
)
79+
parser = argparse.ArgumentParser(description="Retrieves the latest artifacts of SymbiFlow-related CIs.")
8480

8581
parser.add_argument(
8682
"--project",
@@ -121,9 +117,7 @@ def main():
121117

122118
if args.get_build_number:
123119
assert not (args.get_all_urls or args.get_single_url)
124-
_, build_number = get_latest_artifact_url(
125-
args.project, args.build_name, args.jobset
126-
)
120+
_, build_number = get_latest_artifact_url(args.project, args.build_name, args.jobset)
127121
print(build_number)
128122

129123
elif args.get_all_urls:

test/test_stdm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
import pytest
2121
import argparse
2222

23-
parser = argparse.ArgumentParser(
24-
description="Retrieves the latest artifacts of SymbiFlow-related CIs."
25-
)
23+
parser = argparse.ArgumentParser(description="Retrieves the latest artifacts of SymbiFlow-related CIs.")
2624

2725

2826
def test_get_symbiflow_arch_defs_tarball():

0 commit comments

Comments
 (0)