From 19f99a8dd02c7505cfc76b660434bccf024a6357 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Sat, 14 Oct 2023 00:17:14 +0200 Subject: [PATCH] Update test runner --- .github/workflows/pythonpackage.yml | 2 +- pyproject.toml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 0d4fad3..2aa72b0 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -16,7 +16,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e .[tests] + pip install -flake8 pytest - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names diff --git a/pyproject.toml b/pyproject.toml index 2987d19..07d8273 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,3 +68,16 @@ source = ["moderngl_window"] [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" + +[tool.flake8] +ignore = [ + "W503", + "C901", +] +max-complexity = 10 +max-line-length = 120 +exclude = [ + "tests/", + "docs/", + "temp/", +]