Skip to content

Commit

Permalink
ci: upgrade black (fixes #1621) (#1622)
Browse files Browse the repository at this point in the history
* ci: upgrade black (fixes #1621)

* ci: improve PR title handling for gitlint (fixes #1624)
  • Loading branch information
terriko committed Mar 29, 2022
1 parent 90d27db commit 850cea7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
run: |
pre-commit run ${{ matrix.tool }} --all-files
- name: Run gitlint
env:
TITLE: ${{ github.event.pull_request.title }}
if: ${{ github.event_name == 'pull_request' && matrix.tool == 'gitlint' }}
run: |
python -m pip install --upgrade gitlint
echo ${{ github.event.pull_request.title }} | gitlint
echo "$TITLE" | gitlint
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: isort

- repo: https://github.com/python/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black

Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black==22.1.0
black==22.3.0
isort==5.10.1
pre-commit==2.17.0
flake8==4.0.1
Expand Down

0 comments on commit 850cea7

Please sign in to comment.