Skip to content
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
9 changes: 5 additions & 4 deletions .ci/scripts/validate_commit_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from pathlib import Path

import tomllib
from github import Github

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

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


def check_status(issue: str) -> None:
from github import Github

g = Github(os.environ.get("GITHUB_TOKEN"))
repo = g.get_repo("pulp/pulp-cli-workflow")

gi = repo.get_issue(int(issue))
if gi.pull_request:
sys.exit(f"Error: issue #{issue} is a pull request.")
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build/
site/
dist/
*.po~
uv.lock

tests/cli.toml
GPG-PRIVATE-KEY-fixture-signing
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ _autofix:

.PHONY: autofix
autofix:
uv lock
uv run --isolated --group lint $(MAKE) _autofix

.PHONY: _lint
Expand All @@ -44,7 +43,6 @@ _lint:

.PHONY: lint
lint:
uv lock --check
uv run --isolated --group lint $(MAKE) _lint

tests/cli.toml:
Expand Down
2 changes: 1 addition & 1 deletion pulp-glue-workflow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ line-length = 100

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


[tool.mypy]
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ namespaces = true
# This section is managed by the cookiecutter templates.
current_version = "0.0.1.dev0"
commit = false
pre_commit_hooks = ["uv lock", "git add uv.lock"]
tag = false
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
serialize = [
Expand Down Expand Up @@ -235,7 +234,7 @@ lint = [
]
test = [
"pygments>=2.19.2",
"pytest>=7.0.0,<9.1",
"pytest>=7.0.0,<9.2",
"pytest-xdist>=3.8.0,<3.9",
"python-gnupg>=0.5.0,<0.6",
"secretstorage>=3.5.0",
Expand Down
Loading
Loading