Skip to content

Commit

Permalink
Pin black dependency
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg committed Jan 26, 2024
1 parent 238784d commit 6eaac0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: "Lint plugin_template"
working-directory: "plugin_template"
run: |
pip3 install black flake8
pip3 install black==23.12.1 flake8
black --version
black --check --diff plugin-template utils.py
flake8 plugin-template utils.py
Expand Down
8 changes: 5 additions & 3 deletions templates/github/.ci/scripts/collect_changes.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ tc_settings = toml.load("pyproject.toml")["tool"]["towncrier"]
CHANGELOG_FILE = tc_settings.get("filename", "NEWS.rst")
START_STRING = tc_settings.get(
"start_string",
"<!-- towncrier release notes start -->\n"
if CHANGELOG_FILE.endswith(".md")
else ".. towncrier release notes start\n",
(
"<!-- towncrier release notes start -->\n"
if CHANGELOG_FILE.endswith(".md")
else ".. towncrier release notes start\n"
),
)
TITLE_FORMAT = tc_settings.get("title_format", "{name} {version} ({project_date})")

Expand Down
2 changes: 1 addition & 1 deletion templates/github/lint_requirements.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# python packages handy for developers, but not required by pulp
{% if black -%}
black
black==23.12.1
{% endif -%}
check-manifest
flake8
Expand Down

0 comments on commit 6eaac0c

Please sign in to comment.