Skip to content

Commit

Permalink
TMP pyproject to squash
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-ballarin committed Nov 1, 2023
1 parent b95c9ef commit 0c7ca9a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 0c7ca9a

Please sign in to comment.