Skip to content

Commit 46b184b

Browse files
committed
Consolidate formatting calls
1 parent d925e64 commit 46b184b

3 files changed

Lines changed: 9 additions & 14 deletions

File tree

‎plugin-template‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# /// script
33
# requires-python = ">=3.11"
44
# dependencies = [
5+
# "black==24.3.0",
56
# "jamldump>=1.2.0,<1.3.0",
67
# "jinja2>=3.1.6,<3.2.0",
78
# "pyyaml>=6.0.3,<6.1.0",

‎scripts/update_ci.sh‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,6 @@ else
4040
echo "No updates needed"
4141
fi
4242

43-
if [[ "${USE_BLACK}" == "True" ]]
44-
then
45-
pip install -r lint_requirements.txt
46-
black .
47-
48-
if [[ "$(git status --porcelain)" ]]
49-
then
50-
git add -A
51-
git commit -m "Reformat with black"
52-
else
53-
echo "No formatting change needed"
54-
fi
55-
fi
56-
5743
# Check that pulpcore lowerbounds is set to a supported branch
5844
if [[ "${PLUGIN_NAME}" != "pulpcore" ]]; then
5945
python ../plugin_template/scripts/update_core_lowerbound.py

‎templates/github/.ci/scripts/collect_changes.py.j2‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
#!/bin/env python3
2+
# /// script
3+
# requires-python = ">=3.13"
4+
# dependencies = [
5+
# "gitpython>=3.1.46,<3.2.0",
6+
# "packaging>=26.0,<26.1",
7+
# ]
8+
# ///
9+
210
{% include "header.j2" %}
311

412
import itertools

0 commit comments

Comments
 (0)