From 0c7ca9a627ae8d15b242b633a3d9614f5d0d9bc0 Mon Sep 17 00:00:00 2001 From: Francesco Ballarin Date: Wed, 1 Nov 2023 15:50:23 +0100 Subject: [PATCH] TMP pyproject to squash --- .github/workflows/ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17bbfe9..cb58c15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,13 +80,14 @@ jobs: - name: Update mypy configuration if: startsWith(matrix.backend, 'none') == true run: | - echo "[mypy-dolfinx]" >> setup.cfg - echo "ignore_missing_imports = True" >> setup.cfg - echo "[mypy-dolfinx.*]" >> setup.cfg - echo "ignore_missing_imports = True" >> setup.cfg - echo "[mypy-rbnicsx._cpp.default_compiler_options_with_dolfinx]" >> setup.cfg - echo "follow_imports = silent" >> setup.cfg - sed -i 's@exclude = (^\\\.eggs|^build|^dist|conftest\\\.py\$)@exclude = (^\\\.eggs|^build|^dist|conftest\\\.py\$|^rbnicsx/backends|^rbnicsx/_cpp/backends|^rbnicsx/_cpp/default_compiler_options_with_dolfinx\\\.py\$|^tests/unit/backends|^tests/unit/_cpp/backends)@g' setup.cfg + echo "[[tool.mypy.overrides]]" >> pyproject.toml + echo 'module = "dolfinx"' >> pyproject.toml + echo "ignore_missing_imports = true" >> pyproject.toml + echo "[[tool.mypy.overrides]]" >> pyproject.toml + echo 'module = "dolfinx.*"' >> pyproject.toml + echo "ignore_missing_imports = true" >> pyproject.toml + sed -i 's@exclude = \[".eggs", "build", "dist"\]@exclude = [".eggs", "build", "dist", "rbnicsx/backends", "tests/unit/backends"]@g' pyproject.toml + sed -i 's@exclude = "(^\\\\.eggs|^build|^dist|conftest\\\\.py\$)"@exclude = "(^\\\\.eggs|^build|^dist|conftest\\\\.py\$|^rbnicsx/backends|^tests/unit/backends)"@g' pyproject.toml shell: bash - name: Run flake8 and mypy checks on python files run: |