Skip to content

Commit 850cea7

Browse files
authored
ci: upgrade black (fixes #1621) (#1622)
* ci: upgrade black (fixes #1621) * ci: improve PR title handling for gitlint (fixes #1624)
1 parent 90d27db commit 850cea7

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/linting.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
run: |
3030
pre-commit run ${{ matrix.tool }} --all-files
3131
- name: Run gitlint
32+
env:
33+
TITLE: ${{ github.event.pull_request.title }}
3234
if: ${{ github.event_name == 'pull_request' && matrix.tool == 'gitlint' }}
3335
run: |
3436
python -m pip install --upgrade gitlint
35-
echo ${{ github.event.pull_request.title }} | gitlint
37+
echo "$TITLE" | gitlint

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: isort
66

77
- repo: https://github.com/python/black
8-
rev: 22.1.0
8+
rev: 22.3.0
99
hooks:
1010
- id: black
1111

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
black==22.1.0
1+
black==22.3.0
22
isort==5.10.1
33
pre-commit==2.17.0
44
flake8==4.0.1

0 commit comments

Comments
 (0)