Skip to content

dsl: Add PETSc functionality #527

dsl: Add PETSc functionality

dsl: Add PETSc functionality #527

Triggered via pull request May 27, 2026 23:23
@ZoeLeibowitzZoeLeibowitz
synchronize #2570
petsc
Status Failure
Total duration 17s
Artifacts

lint.yaml

on: pull_request
Lint the codebase
11s
Lint the codebase
Spellcheck everything
12s
Spellcheck everything
Lint Github actions YAML files
9s
Lint Github actions YAML files
Lint dockerfiles
11s
Lint dockerfiles
Fit to window
Zoom out
Zoom in

Annotations

21 errors
Lint dockerfiles
Process completed with exit code 1.
ruff (B905): devito/petsc/iet/time_dependence.py#L83
devito/petsc/iet/time_dependence.py:83:27: B905 `zip()` without an explicit `strict=` parameter help: Add explicit value for parameter `strict=`
ruff (SIM108): devito/petsc/iet/passes.py#L171
devito/petsc/iet/passes.py:171:5: SIM108 Use ternary operator `dtype = np.int32 if kwargs['options']['index-mode'] == 'int32' else np.int64` instead of `if`-`else`-block help: Replace `if`-`else`-block with `dtype = np.int32 if kwargs['options']['index-mode'] == 'int32' else np.int64`
ruff (UP031): devito/petsc/iet/nodes.py#L27
devito/petsc/iet/nodes.py:27:16: UP031 Use format specifiers instead of percent format help: Replace with format specifiers
ruff (UP031): devito/petsc/iet/nodes.py#L21
devito/petsc/iet/nodes.py:21:16: UP031 Use format specifiers instead of percent format help: Replace with format specifiers
ruff (SIM910): devito/petsc/iet/logging.py#L23
devito/petsc/iet/logging.py:23:29: SIM910 Use `kwargs.get('inject_solve')` instead of `kwargs.get('inject_solve', None)` help: Replace `kwargs.get('inject_solve', None)` with `kwargs.get('inject_solve')`
ruff (E713): devito/petsc/iet/callbacks.py#L1338
devito/petsc/iet/callbacks.py:1338:12: E713 Test for membership should be `not in` help: Convert to `not in`
ruff (SIM910): devito/petsc/iet/callbacks.py#L32
devito/petsc/iet/callbacks.py:32:26: SIM910 Use `kwargs.get('sregistry')` instead of `kwargs.get('sregistry', None)` help: Replace `kwargs.get('sregistry', None)` with `kwargs.get('sregistry')`
ruff (SIM910): devito/petsc/iet/callbacks.py#L31
devito/petsc/iet/callbacks.py:31:25: SIM910 Use `kwargs.get('rcompile')` instead of `kwargs.get('rcompile', None)` help: Replace `kwargs.get('rcompile', None)` with `kwargs.get('rcompile')`
ruff (B905): devito/petsc/iet/builder.py#L302
devito/petsc/iet/builder.py:302:33: B905 `zip()` without an explicit `strict=` parameter help: Add explicit value for parameter `strict=`
ruff (B905): devito/petsc/iet/builder.py#L71
devito/petsc/iet/builder.py:71:29: B905 `zip()` without an explicit `strict=` parameter help: Add explicit value for parameter `strict=`
typo: tests/test_petsc.py#L2254
`specifed` should be specified
typo: tests/test_petsc.py#L2005
`specifed` should be specified
typo: tests/test_petsc.py#L1903
`specifed` should be specified
typo: tests/test_petsc.py#L1861
`specifed` should be specified
typo: tests/test_petsc.py#L653
`ouput` should be output
typo: devito/petsc/iet/builder.py#L255
`explictly` should be explicitly
typo: devito/petsc/iet/builder.py#L107
`explictly` should be explicitly
typo: devito/petsc/iet/callbacks.py#L577
`initital` should be initial
typo: devito/petsc/iet/callbacks.py#L151
`specifed` should be specified
typo: devito/petsc/config.py#L81
`doens` should be does, doesn