Skip to content

Commit 747bcf9

Browse files
pulpbotdaviddavis
authored andcommitted
Update cookiecutter
1 parent 17ceae4 commit 747bcf9

6 files changed

Lines changed: 8 additions & 1585 deletions

File tree

.ci/scripts/validate_commit_message.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from pathlib import Path
1313

1414
import tomllib
15-
from github import Github
1615

1716
with Path("pyproject.toml").open("rb") as fp:
1817
PYPROJECT_TOML = tomllib.load(fp)
@@ -36,11 +35,13 @@
3635
if any(re.match(pattern, message) for pattern in BLOCKING_REGEX):
3736
sys.exit("This PR is not ready for consumption.")
3837

39-
g = Github(os.environ.get("GITHUB_TOKEN"))
40-
repo = g.get_repo("daviddavis/pulp-cli-workflow")
41-
4238

4339
def check_status(issue: str) -> None:
40+
from github import Github
41+
42+
g = Github(os.environ.get("GITHUB_TOKEN"))
43+
repo = g.get_repo("pulp/pulp-cli-workflow")
44+
4445
gi = repo.get_issue(int(issue))
4546
if gi.pull_request:
4647
sys.exit(f"Error: issue #{issue} is a pull request.")

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ build/
44
site/
55
dist/
66
*.po~
7+
uv.lock
78

89
tests/cli.toml
910
GPG-PRIVATE-KEY-fixture-signing

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ _autofix:
2828

2929
.PHONY: autofix
3030
autofix:
31-
uv lock
3231
uv run --isolated --group lint $(MAKE) _autofix
3332

3433
.PHONY: _lint
@@ -44,7 +43,6 @@ _lint:
4443

4544
.PHONY: lint
4645
lint:
47-
uv lock --check
4846
uv run --isolated --group lint $(MAKE) _lint
4947

5048
tests/cli.toml:

pulp-glue-workflow/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ line-length = 100
4646

4747
[tool.ruff.lint]
4848
# This section is managed by the cookiecutter templates.
49-
extend-select = ["I", "INT"]
49+
extend-select = ["I", "INT", "PTH"]
5050

5151

5252
[tool.mypy]

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ namespaces = true
8484
# This section is managed by the cookiecutter templates.
8585
current_version = "0.0.1.dev0"
8686
commit = false
87-
pre_commit_hooks = ["uv lock", "git add uv.lock"]
8887
tag = false
8988
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
9089
serialize = [
@@ -235,7 +234,7 @@ lint = [
235234
]
236235
test = [
237236
"pygments>=2.19.2",
238-
"pytest>=7.0.0,<9.1",
237+
"pytest>=7.0.0,<9.2",
239238
"pytest-xdist>=3.8.0,<3.9",
240239
"python-gnupg>=0.5.0,<0.6",
241240
"secretstorage>=3.5.0",

0 commit comments

Comments
 (0)