Skip to content

Commit 1e46e46

Browse files
committed
black formatting
Reformat code to prevent failing codestyle test Signed-off-by: keshav-space <keshav6240@gmail.com>
1 parent fd9d341 commit 1e46e46

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

docs/source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@
2828
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2929
# ones.
3030
extensions = [
31-
'sphinx.ext.intersphinx',
31+
"sphinx.ext.intersphinx",
3232
]
3333

3434
# This points to aboutcode.readthedocs.io
3535
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
3636
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
3737

3838
intersphinx_mapping = {
39-
'aboutcode': ('https://aboutcode.readthedocs.io/en/latest/', None),
40-
'scancode-workbench': ('https://scancode-workbench.readthedocs.io/en/develop/', None),
39+
"aboutcode": ("https://aboutcode.readthedocs.io/en/latest/", None),
40+
"scancode-workbench": ("https://scancode-workbench.readthedocs.io/en/develop/", None),
4141
}
4242

4343

@@ -62,7 +62,7 @@
6262
# so a file named "default.css" will overwrite the builtin "default.css".
6363
html_static_path = ["_static"]
6464

65-
master_doc = 'index'
65+
master_doc = "index"
6666

6767
html_context = {
6868
"css_files": [

etc/scripts/fix_thirdparty.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def fix_thirdparty_dir(
7878
package_envts_not_fetched = utils_thirdparty.fetch_missing_wheels(dest_dir=thirdparty_dir)
7979
print("***FETCH*** MISSING SOURCES")
8080
src_name_ver_not_fetched = utils_thirdparty.fetch_missing_sources(dest_dir=thirdparty_dir)
81-
81+
8282
package_envts_not_built = []
8383
if build_wheels:
8484
print("***BUILD*** MISSING WHEELS")
@@ -89,7 +89,7 @@ def fix_thirdparty_dir(
8989
dest_dir=thirdparty_dir,
9090
)
9191
package_envts_not_built, _wheel_filenames_built = results
92-
92+
9393
print("***ADD*** ABOUT AND LICENSES")
9494
utils_thirdparty.add_fetch_or_update_about_and_license_files(
9595
dest_dir=thirdparty_dir,
@@ -99,7 +99,7 @@ def fix_thirdparty_dir(
9999
# report issues
100100
for name, version in src_name_ver_not_fetched:
101101
print(f"{name}=={version}: Failed to fetch source distribution.")
102-
102+
103103
for package, envt in package_envts_not_built:
104104
print(
105105
f"{package.name}=={package.version}: Failed to build wheel "

etc/scripts/utils_requirements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def has_ops(l):
8686
return any(op in l for op in ops)
8787

8888
if not has_ops:
89-
return line
89+
return line
9090

9191
splitter = re.compile(r"[><!=~;, \[\]]+").split
9292
return splitter(line)[0]

etc/scripts/utils_thirdparty.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,14 @@
9797
"310": "3.10",
9898
}
9999

100+
100101
def get_python_dot_version(version):
101102
"""
102103
Return a dot version from a plain, non-dot version.
103104
"""
104105
return PYTHON_DOT_VERSIONS_BY_VER[version]
105106

107+
106108
ABIS_BY_PYTHON_VERSION = {
107109
"36": ["cp36", "cp36m"],
108110
"37": ["cp37", "cp37m"],
@@ -2529,7 +2531,7 @@ def hash_requirements(dest_dir=THIRDPARTY_DIR, requirements_file="requirements.t
25292531

25302532

25312533
def add_fetch_or_update_about_and_license_files(
2532-
dest_dir=THIRDPARTY_DIR,
2534+
dest_dir=THIRDPARTY_DIR,
25332535
include_remote=True,
25342536
strip_classifiers=False,
25352537
):

0 commit comments

Comments
 (0)