Skip to content

Commit cad4cc6

Browse files
committed
[ci] Add flake8 linting
This commit adds flake8 to the continuous integration (CI) pipeline. flake8 will now run on every push and pull request, helping to enforce code style consistency and identify potential issues early. This will improve code quality and maintainability.
1 parent ba2e1ef commit cad4cc6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: .github/workflows/linter.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515
- name: Install dependencies
16-
run: pip install black isort
16+
run: pip install black isort flake8
17+
# Different line limits: Black/isort (120), Flake8 (150).
18+
# Flake8 allows longer lines for better long string readability. Black doesn't enforce string length.
1719
- name: Run black
1820
run: black --line-length=120 --check --diff .
21+
- name: Run flake8
22+
run: flake8 --max-line-length 150
1923
- name: Run isort
2024
run: isort --check --diff --line-length 120 .
2125

0 commit comments

Comments
 (0)