Skip to content

Commit 0b04915

Browse files
authored
Merge branch 'main' into patch-1
2 parents def06e4 + cdae289 commit 0b04915

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.8.6
3+
rev: v0.12.2
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 24.10.0
9+
rev: 25.1.0
1010
hooks:
1111
- id: black
1212

@@ -25,18 +25,18 @@ repos:
2525
- id: trailing-whitespace
2626

2727
- repo: https://github.com/python-jsonschema/check-jsonschema
28-
rev: 0.30.0
28+
rev: 0.33.2
2929
hooks:
3030
- id: check-dependabot
3131
- id: check-github-workflows
3232

3333
- repo: https://github.com/rhysd/actionlint
34-
rev: v1.7.6
34+
rev: v1.7.7
3535
hooks:
3636
- id: actionlint
3737

3838
- repo: https://github.com/pre-commit/mirrors-mypy
39-
rev: v1.14.1
39+
rev: v1.16.1
4040
hooks:
4141
- id: mypy
4242
args:
@@ -50,22 +50,22 @@ repos:
5050
additional_dependencies: ["types-requests"]
5151

5252
- repo: https://github.com/tox-dev/pyproject-fmt
53-
rev: v2.5.0
53+
rev: v2.6.0
5454
hooks:
5555
- id: pyproject-fmt
5656

5757
- repo: https://github.com/abravalheri/validate-pyproject
58-
rev: v0.23
58+
rev: v0.24.1
5959
hooks:
6060
- id: validate-pyproject
6161

6262
- repo: https://github.com/tox-dev/tox-ini-fmt
63-
rev: 1.4.1
63+
rev: 1.5.0
6464
hooks:
6565
- id: tox-ini-fmt
6666

6767
- repo: https://github.com/codespell-project/codespell
68-
rev: v2.3.0
68+
rev: v2.4.1
6969
hooks:
7070
- id: codespell
7171
args: [--ignore-words-list=commitish]

cherry_picker/cherry_picker.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def amend_commit_message(self, cherry_pick_branch):
418418
def pause_after_committing(self, cherry_pick_branch):
419419
click.echo(
420420
f"""
421-
Finished cherry-pick {self.commit_sha1} into {cherry_pick_branch} \U0001F600
421+
Finished cherry-pick {self.commit_sha1} into {cherry_pick_branch} \U0001f600
422422
--no-push option used.
423423
... Stopping here.
424424
To continue and push the changes:
@@ -659,7 +659,7 @@ def continue_cherry_pick(self):
659659
]
660660
self.commit_sha1 = get_full_sha_from_short(short_sha)
661661

662-
commits = get_commits_from_backport_branch(base)
662+
commits = get_commits_from_backport_branch(f"{self.upstream}/{base}")
663663
if len(commits) == 1:
664664
commit_message = self.amend_commit_message(cherry_pick_branch)
665665
else:
@@ -697,7 +697,7 @@ def continue_cherry_pick(self):
697697
else:
698698
click.echo(
699699
f"Current branch ({cherry_pick_branch}) is not a backport branch. "
700-
"Will not continue. \U0001F61B"
700+
"Will not continue. \U0001f61b"
701701
)
702702
set_state(WORKFLOW_STATES.CONTINUATION_FAILED)
703703

@@ -843,12 +843,12 @@ def cherry_pick_cli(
843843
):
844844
"""cherry-pick COMMIT_SHA1 into target BRANCHES."""
845845

846-
click.echo("\U0001F40D \U0001F352 \u26CF")
846+
click.echo("\U0001f40d \U0001f352 \u26cf")
847847

848848
try:
849849
chosen_config_path, config = load_config(config_path)
850850
except ValueError as exc:
851-
click.echo("You're not inside a Git tree right now! \U0001F645", err=True)
851+
click.echo("You're not inside a Git tree right now! \U0001f645", err=True)
852852
click.echo(exc, err=True)
853853
sys.exit(-1)
854854
try:

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
build-backend = "hatchling.build"
33
requires = [
44
"hatch-vcs",
5-
"hatchling",
5+
"hatchling>=1.27",
66
]
77

88
[project]
99
name = "cherry-picker"
1010
description = "Backport CPython changes from main to maintenance branches"
1111
readme = "README.md"
12+
license = "Apache-2.0"
13+
license-files = [ "LICENSE" ]
1214
maintainers = [ { name = "Python Core Developers", email = "core-workflow@python.org" } ]
1315
authors = [ { name = "Mariatta Wijaya", email = "mariatta@python.org" } ]
1416
requires-python = ">=3.9"
1517
classifiers = [
1618
"Intended Audience :: Developers",
17-
"License :: OSI Approved :: Apache Software License",
1819
"Programming Language :: Python :: 3 :: Only",
1920
"Programming Language :: Python :: 3.9",
2021
"Programming Language :: Python :: 3.10",

0 commit comments

Comments
 (0)