From 1e2310eb07dec184effbb2d81a9414cf9b215f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kerekes=20D=C3=A1vid?= Date: Tue, 10 Sep 2024 14:30:17 +0200 Subject: [PATCH] Enable linting --- .github/workflows/python-test.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index b8bfcc6a..58e1f14f 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -53,12 +53,14 @@ jobs: - name: Check solution run: | mamba env export - # - name: Lint with flake8 - # run: | - # # stop the build if there are Python syntax errors or undefined names - # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest run: | python -m unittest tests.test_imports