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 b1d0b5d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=62", "wheel"]
requires = ["setuptools>=62", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
Expand Down 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 b1d0b5d

Please sign in to comment.