Skip to content

Commit

Permalink
more manual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Mar 13, 2024
1 parent 8c7c842 commit d1a58a6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion skare3_tools/dashboard/views/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_stream():
else "skipped"
),
)
for n, t in zip(column_names, test_runs)
for n, t in zip(column_names, test_runs, strict=True)
]
test_cases.append(row)
test_suites.append({"name": ts_name, "test_cases": test_cases})
Expand Down
2 changes: 1 addition & 1 deletion skare3_tools/github/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""

from . import github, graphql
from .github import Organization, Repository # noqa
from .github import Organization, Repository # noqa: F401

GITHUB_API_V3 = github.GITHUB_API
GITHUB_API_V4 = graphql.GITHUB_API
Expand Down
2 changes: 1 addition & 1 deletion skare3_tools/github/scripts/add_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def main():
args = the_parser.parse_args()

try:
import selenium # noqa
import selenium # noqa: F401
except ModuleNotFoundError:
logging.error(
f"The script requires the selenium module. Run `{sys.argv[0]} -h` for help."
Expand Down
6 changes: 3 additions & 3 deletions skare3_tools/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def _get_repository_info_v4(
}
]

for base, head in zip(releases[1:], releases[:-1]):
for base, head in zip(releases[1:], releases[:-1], strict=True):
rel_commits = get_all_nodes(
owner,
name,
Expand Down Expand Up @@ -898,7 +898,7 @@ def _get_repository_info_v3(
release_commits = [repository.commits(ref=c["sha"]) for c in release_commits]
release_dates = {
r["tag_name"]: c["commit"]["committer"]["date"]
for r, c in zip(releases, release_commits)
for r, c in zip(releases, release_commits, strict=True)
}

date_since = None
Expand Down Expand Up @@ -937,7 +937,7 @@ def _get_repository_info_v3(
"merges": [],
}
for release in [
r for r, c in zip(releases, release_commits) if c["sha"] == sha
r for r, c in zip(releases, release_commits, strict=True) if c["sha"] == sha
]
]
release_info += releases_at_commit
Expand Down
3 changes: 2 additions & 1 deletion skare3_tools/scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def main():
version_info["label"] = (
f'+{version_info["label"]}' if version_info["label"] else ""
)
args.ska3_overwrite_version = f'{version_info["release"]}{version_info["label"]}:{version_info["version"]}' # noqa
args.ska3_overwrite_version = \
f'{version_info["release"]}{version_info["label"]}:{version_info["version"]}'

print("skare3 build args:", args)
print("skare3 build unknown args:", unknown_args)
Expand Down
4 changes: 2 additions & 2 deletions skare3_tools/scripts/convert_numpydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def params_to_numpydoc(lines: list) -> list:
"----------",
]

for idx0, idx1 in zip(idxs[:-1], idxs[1:]):
for idx0, idx1 in zip(idxs[:-1], idxs[1:], strict=True):
lines_param = lines[idx0:idx1]
line_param = lines_param[0]
match = re.match(r":param \s+ (\w+) \s* : \s* (.*)", line_param, re.VERBOSE)
Expand Down Expand Up @@ -290,7 +290,7 @@ def returns_to_numpydoc(lines: list) -> list:
return_type = None
return_desc_lines = []

for idx0, idx1, marker in zip(idxs[:-1], idxs[1:], markers):
for idx0, idx1, marker in zip(idxs[:-1], idxs[1:], markers, strict=True):
if marker == ":rtype:":
return_type = " ".join(lines[idx0:idx1])
return_type = return_type[len(marker) :].strip()
Expand Down

0 comments on commit d1a58a6

Please sign in to comment.