Skip to content

Commit

Permalink
pre-commit changes, yay
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Mar 20, 2024
1 parent 043fdeb commit 244e29d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions adabot/lib/circuitpython_library_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def _validate_pre_commit_config_yaml(self, file_info):
errors = []

black_repo = "repo: https://github.com/python/black"
black_version = "rev: 22.3.0"
black_version = "rev: 22.4.0"

if black_repo not in text or black_version not in text:
errors.append(ERROR_BLACK_VERSION)
Expand Down Expand Up @@ -895,9 +895,9 @@ def validate_readthedocs(self, repo):
return [ERROR_RTD_SUBPROJECT_FAILED]
self.rtd_subprojects = {}
for subproject in rtd_response.json()["subprojects"]:
self.rtd_subprojects[
common_funcs.sanitize_url(subproject["repo"])
] = subproject
self.rtd_subprojects[common_funcs.sanitize_url(subproject["repo"])] = (
subproject
)
repo_url = common_funcs.sanitize_url(repo["clone_url"])
if repo_url not in self.rtd_subprojects:
return [ERROR_RTD_SUBPROJECT_MISSING]
Expand Down
6 changes: 2 additions & 4 deletions tools/library_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ class LocalLibFunc(Protocol):

def __call__(
self, lib_path: StrPath, *args: Sequence[Any], **kwargs: dict[str, Any]
) -> Any:
...
) -> Any: ...


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

def __call__(
self, lib_repo: Repository, *args: Sequence[Any], **kwargs: dict[str, Any]
) -> Any:
...
) -> Any: ...


def in_lib_path(func: LocalLibFunc) -> LocalLibFunc:
Expand Down

0 comments on commit 244e29d

Please sign in to comment.