Skip to content

Commit

Permalink
Merge pull request #371 from jepler/update-black-packaging
Browse files Browse the repository at this point in the history
bump black, packaging versions
  • Loading branch information
jepler committed May 1, 2024
2 parents 38b61d2 + 244e29d commit c89a027
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
hooks:
- id: reuse
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/pylint
Expand Down
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
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#
# SPDX-License-Identifier: MIT

black==22.3.0
packaging==20.3
black==24.3.0
packaging==22.0
pylint==2.11.1
pytest
pyyaml>=5.4.1
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 c89a027

Please sign in to comment.