Skip to content

Commit acd1d89

Browse files
authored
this is driving me crazy
1 parent 3a39465 commit acd1d89

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/python-lint.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,6 @@ jobs:
1010
flake8-lint:
1111
runs-on: ubuntu-latest
1212
name: Lint
13-
if: |
14-
github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3'
15-
|| (
16-
github.event.schedule
17-
&& github.repository_owner == 'ggerganov'
18-
)
19-
|| github.event.pull_request
20-
|| github.head_ref == 'master'
21-
|| (
22-
github.event.push
23-
&& github.event.push.ref == 'refs/heads/master'
24-
&& github.repository_owner == 'ggerganov'
25-
)
26-
|| (
27-
!github.event.push
28-
&& github.ref_name == 'master'
29-
)
3013
steps:
3114
- name: Check out source repository
3215
uses: actions/checkout@v4
@@ -36,6 +19,23 @@ jobs:
3619
python-version: "3.11"
3720
- name: flake8 Lint
3821
uses: py-actions/flake8@v2
22+
if: |
23+
github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3'
24+
|| (
25+
github.event.schedule
26+
&& github.repository_owner == 'ggerganov'
27+
)
28+
|| github.event.pull_request
29+
|| github.head_ref == 'master'
30+
|| (
31+
github.event.push
32+
&& github.event.push.ref == 'refs/heads/master'
33+
&& github.repository_owner == 'ggerganov'
34+
)
35+
|| (
36+
!github.event.push
37+
&& github.ref_name == 'master'
38+
)
3939
with:
4040
ignore: "E203,E211,E221,E225,E231,E241,E251,E261,E266,E501,E701,E704,W503"
4141
exclude: "examples/*,examples/*/**,*/**/__init__.py,convert-hf-to-gguf-update.py"

0 commit comments

Comments
 (0)