Skip to content

Commit f26c595

Browse files
Improve lint workflow: add PR trigger types and exclude cache folders
1 parent d989aae commit f26c595

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
branches:
66
- main
7+
types: [opened, synchronize, reopened]
78

89
jobs:
910
lint:
@@ -22,4 +23,9 @@ jobs:
2223
run: pip install flake8
2324

2425
- name: Run flake8
25-
run: flake8 . --count --max-line-length=120 --statistics
26+
run: |
27+
flake8 . \
28+
--count \
29+
--max-line-length=120 \
30+
--exclude=.git,__pycache__,*.egg-info \
31+
--statistics

0 commit comments

Comments
 (0)