Skip to content

Commit c89a027

Browse files
authored
Merge pull request #371 from jepler/update-black-packaging
bump black, packaging versions
2 parents 38b61d2 + 244e29d commit c89a027

4 files changed

+9
-11
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
hooks:
1515
- id: reuse
1616
- repo: https://github.com/psf/black
17-
rev: 23.3.0
17+
rev: 24.3.0
1818
hooks:
1919
- id: black
2020
- repo: https://github.com/pycqa/pylint

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]

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5-
black==22.3.0
6-
packaging==20.3
5+
black==24.3.0
6+
packaging==22.0
77
pylint==2.11.1
88
pytest
99
pyyaml>=5.4.1

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)