Skip to content

Commit

Permalink
[ci][clean] Move flake8 config into the pyproject.toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
lpascal-ledger committed Feb 7, 2024
1 parent 64d1e38 commit 908831e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fast-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
steps:
- name: Clone
uses: actions/checkout@v4
- run: pip install flake8
- run: pip install flake8 flake8-pyproject
- name: Flake8 lint Python code
run: find src/ -type f -name '*.py' -exec flake8 --max-line-length=120 '{}' '+'
run: flake8 src/

yapf:
name: Formatting
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ checkers = [
"yapf",
"toml",
"flake8",
"flake8-pyproject",
"mypy",
"bandit",
"pyqt5-stubs",
Expand Down Expand Up @@ -109,3 +110,6 @@ exclude_lines = [
"@abstractmethod",
"pragma: no cover"
]

[tool.flake8]
max-line-length = 120

0 comments on commit 908831e

Please sign in to comment.