Skip to content

Commit aaea42a

Browse files
committed
ci: run black --check
It should fail if formatting is incorrect
1 parent 8c60ef5 commit aaea42a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ on:
99
jobs:
1010
lint:
1111
runs-on: ubuntu-latest
12+
if: github.event_name == 'pull_request'
1213
steps:
1314
- uses: actions/checkout@v5
1415
- name: Set up Python 3.8
1516
uses: actions/setup-python@v5
1617
with:
1718
python-version: 3.8
1819
- name: Lint
19-
if: github.event_name == 'pull_request'
2020
env:
2121
BASE_SHA: ${{ github.event.pull_request.base.sha }}
2222
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
@@ -25,7 +25,7 @@ jobs:
2525
pip install mypy
2626
pip install -e .
2727
black --version
28-
black pyevmasm
28+
black --check pyevmasm
2929
mypy --version
3030
mypy pyevmasm
3131

0 commit comments

Comments
 (0)