Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump black, packaging versions #371

Merged
merged 2 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading