Skip to content

Commit 244e29d

Browse files
committed
pre-commit changes, yay
1 parent 043fdeb commit 244e29d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

adabot/lib/circuitpython_library_validators.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def _validate_pre_commit_config_yaml(self, file_info):
567567
errors = []
568568

569569
black_repo = "repo: https://github.com/python/black"
570-
black_version = "rev: 22.3.0"
570+
black_version = "rev: 22.4.0"
571571

572572
if black_repo not in text or black_version not in text:
573573
errors.append(ERROR_BLACK_VERSION)
@@ -895,9 +895,9 @@ def validate_readthedocs(self, repo):
895895
return [ERROR_RTD_SUBPROJECT_FAILED]
896896
self.rtd_subprojects = {}
897897
for subproject in rtd_response.json()["subprojects"]:
898-
self.rtd_subprojects[
899-
common_funcs.sanitize_url(subproject["repo"])
900-
] = subproject
898+
self.rtd_subprojects[common_funcs.sanitize_url(subproject["repo"])] = (
899+
subproject
900+
)
901901
repo_url = common_funcs.sanitize_url(repo["clone_url"])
902902
if repo_url not in self.rtd_subprojects:
903903
return [ERROR_RTD_SUBPROJECT_MISSING]

tools/library_functions.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ class LocalLibFunc(Protocol):
3737

3838
def __call__(
3939
self, lib_path: StrPath, *args: Sequence[Any], **kwargs: dict[str, Any]
40-
) -> Any:
41-
...
40+
) -> Any: ...
4241

4342

4443
# pylint: disable=too-few-public-methods
@@ -53,8 +52,7 @@ class RemoteLibFunc(Protocol):
5352

5453
def __call__(
5554
self, lib_repo: Repository, *args: Sequence[Any], **kwargs: dict[str, Any]
56-
) -> Any:
57-
...
55+
) -> Any: ...
5856

5957

6058
def in_lib_path(func: LocalLibFunc) -> LocalLibFunc:

0 commit comments

Comments
 (0)