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 c87222d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ pretty = true
show_error_codes = true
strict = true
warn_return_any = true
warn_unused_ignores = true

[[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 c87222d

Please sign in to comment.