Skip to content

Commit 20bd245

Browse files
committed
Merge branch 'master' into features/julian
2 parents f7514a7 + 3e9ca92 commit 20bd245

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: auto-walrus
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.7.0
19+
rev: v0.7.2
2020
hooks:
2121
- id: ruff
2222
- id: ruff-format
@@ -29,7 +29,7 @@ repos:
2929
- tomli
3030

3131
- repo: https://github.com/tox-dev/pyproject-fmt
32-
rev: "2.4.3"
32+
rev: "v2.5.0"
3333
hooks:
3434
- id: pyproject-fmt
3535

@@ -42,12 +42,12 @@ repos:
4242
pass_filenames: false
4343

4444
- repo: https://github.com/abravalheri/validate-pyproject
45-
rev: v0.21
45+
rev: v0.22
4646
hooks:
4747
- id: validate-pyproject
4848

4949
- repo: https://github.com/pre-commit/mirrors-mypy
50-
rev: v1.12.1
50+
rev: v1.13.0
5151
hooks:
5252
- id: mypy
5353
args:

scripts/find_git_conflicts.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Replace with your repository (format: owner/repo)
4+
REPO="TheAlgorithms/Python"
5+
6+
# Fetch open pull requests with conflicts into a variable
7+
echo "Checking for pull requests with conflicts in $REPO..."
8+
9+
prs=$(gh pr list --repo "$REPO" --state open --json number,title,mergeable --jq '.[] | select(.mergeable == "CONFLICTING") | {number, title}' --limit 500)
10+
11+
# Process each conflicting PR
12+
echo "$prs" | jq -c '.[]' | while read -r pr; do
13+
PR_NUMBER=$(echo "$pr" | jq -r '.number')
14+
PR_TITLE=$(echo "$pr" | jq -r '.title')
15+
echo "PR #$PR_NUMBER - $PR_TITLE has conflicts."
16+
done

0 commit comments

Comments
 (0)