diff --git a/.github/workflows/fast-checks.yml b/.github/workflows/fast-checks.yml index 9717eb04..773d6079 100644 --- a/.github/workflows/fast-checks.yml +++ b/.github/workflows/fast-checks.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 36102b28..700e0c15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ checkers = [ "yapf", "toml", "flake8", + "flake8-pyproject", "mypy", "bandit", "pyqt5-stubs", @@ -109,3 +110,6 @@ exclude_lines = [ "@abstractmethod", "pragma: no cover" ] + +[tool.flake8] +max-line-length = 120 \ No newline at end of file