Skip to content

Commit

Permalink
TMP temporary ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-ballarin committed Nov 1, 2023
1 parent f4d870a commit b5c923c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ jobs:
echo "OMPI_ALLOW_RUN_AS_ROOT=1" >> $GITHUB_ENV
echo "OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1" >> $GITHUB_ENV
rm /usr/local/lib/python3.11/site-packages/petsc4py/py.typed
pip3 install setuptools_scm[toml]
- backend: none-complex
container: numericalpdes/base_images:slepc4py-complex
setup_container: |
echo "OMPI_ALLOW_RUN_AS_ROOT=1" >> $GITHUB_ENV
echo "OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1" >> $GITHUB_ENV
rm /usr/local/lib/python3.11/site-packages/petsc4py/py.typed
pip3 install setuptools_scm[toml]
- backend: dolfinx-real
container: dolfinx/dolfinx:nightly
setup_container: |
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"cppimport",
"mpi4py",
"numpy >= 1.21.0",
"petsc4py",
Expand Down Expand Up @@ -117,7 +118,7 @@ pretty = true
show_error_codes = true
strict = true
warn_return_any = true
warn_unused_ignores = true
warn_unused_ignores = false

[[tool.mypy.overrides]]
module = "gmsh"
Expand Down
4 changes: 2 additions & 2 deletions rbnicsx/_cpp/compile_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
import types
import typing

import cppimport
import cppimport # type: ignore
import mpi4py
import mpi4py.MPI
import numpy
import petsc4py
import pybind11
import pybind11 # type: ignore
import slepc4py

from rbnicsx.io import on_rank_zero
Expand Down
9 changes: 5 additions & 4 deletions rbnicsx/_cpp/default_compiler_options_with_dolfinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@

import typing # pragma: no cover

import dolfinx.jit # pragma: no cover
import dolfinx.pkgconfig # pragma: no cover
import dolfinx.wrappers # pragma: no cover
import numpy as np # pragma: no cover
import petsc4py.PETSc # pragma: no cover


def determine_default_compiler_options() -> typing.Dict[str, typing.Union[str, typing.List[str]]]: # pragma: no cover
"""Determine default compiler options when dolfinx is available."""
import dolfinx.jit # pragma: no cover # noqa: IMR200
import dolfinx.pkgconfig # pragma: no cover # noqa: IMR200
import dolfinx.wrappers # pragma: no cover # noqa: IMR200

default_compiler_options: typing.Dict[str, typing.Union[str, typing.List[str]]] = dict()

# C++ components
Expand All @@ -26,7 +27,7 @@ def determine_default_compiler_options() -> typing.Dict[str, typing.Union[str, t
(True, not has_petsc_complex, has_petsc_complex)
):
if dolfinx.pkgconfig.exists(dolfinx_pc_package) and scalar_type_check:
dolfinx_pc.update(dolfinx.pkgconfig.parse(dolfinx_pc_package)) # type: ignore[no-untyped-call]
dolfinx_pc.update(dolfinx.pkgconfig.parse(dolfinx_pc_package)) # type: ignore
break
assert len(dolfinx_pc) > 0
default_compiler_options["include_dirs"] = [
Expand Down

0 comments on commit b5c923c

Please sign in to comment.