| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | pkg_consistency_checks.py | 10 def assert_py_versions_match(config_file: str, toml_data: dict[str, Any]) -> None: 13 def tuplify_version_str(version_str: str) -> tuple[int, int, int]: 31 def assert_version_match(tool_name: str, version_str: str) -> None: 45 def assert_requirements_match(toml_file: str, toml_data: dict[str, Any], req_file: str, req_lines: … 54 def load_toml_data(toml_path: str) -> dict[str, Any]: 75 def load_requirements_data(req_path: str) -> list[str]:
|
| H A D | queue_main.py | 27 def __init__(self, filename: str, *args, **kwargs) -> None: 33 def __handle_error(error_prefix: str, filename: str, error_queue: ParallelPool.ErrorQueueType, file… 94 def __init__(self, verbose: bool, print_prefix: str, lock: ParallelPool.LockType) -> None: 136 updated_check_function_map: dict[str, FunctionChecker], 137 updated_classid_map: dict[str, str], argument 139 compiler_flags: list[str],
|
| H A D | main.py | 92 …anitize_compiler_flags(petsc_dir: Path, petsc_arch: str, verbose: int, extra_compiler_flags: Opti… 102 petsc_arch: str, 109 check_function_filter: Optional[Collection[str]] = None, 112 extra_compiler_flags: Optional[list[str]] = None, 113 extra_header_includes: Optional[list[str]] = None, 333 def str2bool(v: Union[str, bool]) -> bool: 380 def str2int(v: str) -> int: 422 …lf, parser: argparse.ArgumentParser, namespace: argparse.Namespace, values: Union[str, bool, Seque… 450 def parse_command_line_args(argv: Optional[list[str]] = None, parent_parsers: Optional[list[argpars… 472 def expand_argv_globs(in_argv: list[str], diagnostics: Iterable[str]) -> list[str]:
|
| H A D | test_main.py | 80 def test(generated_output: list[str], reference_file: Path) -> str: 96 def sanitize_output_file(text: Optional[str]) -> list[str]: 99 def sanitize_patch_file(text: Optional[str]) -> list[str]: 103 def rename_patch_file_target(text: str, new_path: Path) -> str:
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | check_header_guard.py | 35 def _strip_empty_lines(self, idx: int, ret: list[str]) -> list[str]: 57 def prologue(self, ret: Sequence[str]) -> list[str]: 73 def replace(self, last_line: str, line: str, ret: list[str]) -> list[str]: 77 def epilogue(self, last_endif: int, ret: list[str]) -> list[str]: 95 def prologue(self, ret: list[str]) -> list[str]: 98 def replace(self, prev_line: str, line: str, ret: list[str]) -> list[str]: 141 def epilogue(self, last_endif: int, ret: list[str]) -> list[str]: 197 def prologue(self, ret: list[str]) -> list[str]: 200 def replace(self, prev_line: str, line: str, ret: list[str]) -> list[str]: 266 def epilogue(self, last_endif: int, ret: list[str]) -> list[str]: [all …]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _diag.py | 29 def _fuzzy_get_attribute(self, in_diags: dict[str, str], in_attr: str) -> tuple[bool, str]: argument 39 def __getattr__(self, attr: str) -> str: 65 def _sanitize_input(input_it: Iterable[str]) -> dict[str, str]: 72 def __getattr__(self, attr: str) -> str: 110 def update(self, obj: Any, other: Iterable[str], **kwargs) -> None: 141 def _expand_flag(flag: Union[Iterable[str], str]) -> str: 190 def check_flag(cls, flag: str) -> str: 214 def _inject_diag_map(cls, symbol: _T, diag_pairs: Iterable[tuple[str, str]]) -> _T: argument 269 def register(cls, *args: tuple[str, str]) -> Callable[[_T], _T]: argument 274 def __init__(self, flagprefix: str = '-f') -> None: [all …]
|
| H A D | _pool.py | 75 …def _setup(self: PoolImpl, compiler_flags: list[str], clang_lib: PathLike, clang_options: CXTransl… 90 …def setup(self: PoolImpl, compiler_flags: list[str], clang_lib: Optional[PathLike] = None, clang_o… 122 …thLike], exclude_dirs: Optional[Collection[str]] = None, exclude_dir_suff: Optional[tuple[str, ...… 250 def __crash_and_burn(self, message: str) -> NoReturn: 310 …def _setup(self, compiler_flags: list[str], clang_lib: PathLike, clang_options: CXTranslationUnit,… 508 …def _setup(self, compiler_flags: list[str], clang_lib: PathLike, clang_options: CXTranslationUnit,…
|
| H A D | _path.py | 30 def append_suffix(self, suffix: str) -> Path: 49 def append_name(self, name: str) -> Path:
|
| H A D | _patch.py | 20 def __init__(self, value: str, extent: SourceRange, ctxlines: int) -> None: 50 def apply(self, src: str, offset: int) -> tuple[str, int]: 100 def __init__(self, src_range: SourceRangeLike, value: str, contextlines: int = 2) -> None: 122 def from_cursor(cls, cursor: CursorLike, value: str, **kwargs) -> Patch:
|
| H A D | _attr_cache.py | 21 def __init__(self, init_cache: Optional[dict[str, Any]] = None) -> None: 41 def _get_cached(self, attr: str, func: Callable[..., _T], *args, **kwargs) -> _T:
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Options.pyx | 144 def hasName(self, name: str) -> bool: 153 def used(self, name: str) -> bool: 161 def setValue(self, name: str, 162 …value: bool | int | float | Scalar | Sequence[bool] | Sequence[int] | Sequence[float] | Sequence[S… 203 def delValue(self, name: str) -> None: 226 def getBool(self, name: str, default=None) -> bool: 246 def getBoolArray(self, name: str, default=None) -> ArrayBool: 266 def getInt(self, name: str, default=None) -> int: 286 def getIntArray(self, name: str, default=None) -> ArrayInt: 306 def getReal(self, name: str, default=None) -> float: [all …]
|
| H A D | DMSwarm.pyx | 65 def createGlobalVectorFromField(self, fieldname: str) -> Vec: 89 def destroyGlobalVectorFromField(self, fieldname: str) -> None: 109 def createGlobalVectorFromFields(self, fieldnames: Sequence[str]) -> Vec: 139 def destroyGlobalVectorFromFields(self, fieldnames: Sequence[str]) -> None: 165 def createLocalVectorFromField(self, fieldname: str) -> Vec: 189 def destroyLocalVectorFromField(self, fieldname: str) -> None: 209 def createLocalVectorFromFields(self, fieldnames: Sequence[str]) -> Vec: 239 def destroyLocalVectorFromFields(self, fieldnames: Sequence[str]) -> None: 313 … def registerField(self, fieldname: str, blocksize: int, dtype: type | dtype = ScalarType) -> None: 343 def getField(self, fieldname: str) -> Sequence[int | float | complex]: [all …]
|
| H A D | Sys.pyx | 159 sep: str = ' ', 160 end: str = '\n', 201 sep: str = ' ', 202 end: str = '\n', 332 def pushErrorHandler(cls, errhandler: str) -> None: 397 mode: str = "w") -> None: 427 def registerCitation(cls, citation: str) -> None: 450 def hasExternalPackage(cls, package: str) -> bool:
|
| H A D | DMShell.pyx | 80 kargs: dict[str, Any] | None = None) -> None: 112 kargs: dict[str, Any] | None = None) -> None: 145 begin_kargs: dict[str, Any] | None = None, 147 end_kargs: dict[str, Any] | None = None) -> None: 211 begin_kargs: dict[str, Any] | None = None, 213 end_kargs: dict[str, Any] | None = None) -> None: 275 begin_kargs: dict[str, Any] | None = None, 277 end_kargs: dict[str, Any] | None = None) -> None: 340 kargs: dict[str, Any] | None = None) -> None: 372 kargs: dict[str, Any] | None = None) -> None: [all …]
|
| H A D | Viewer.pyx | 202 name: str, 240 name: str, 273 name: str, 310 name: str, 346 name: str, 430 def setType(self, vwr_type: Type | str) -> None: 605 def ASCII(cls, name : str, comm: Comm | None = None) -> Viewer: 779 def printfASCII(self, msg: str) -> None: 793 def printfASCIISynchronized(self, msg: str) -> None: 821 def setFileMode(self, mode: FileMode | str) -> None: [all …]
|
| H A D | DM.pyx | 169 def setType(self, dm_type: DM.Type | str) -> None: 821 def setVecType(self, vec_type: Vec.Type | str) -> None: 1462 def setMatType(self, mat_type: Mat.Type | str) -> None: 1577 def convert(self, dm_type: DM.Type | str) -> DM: 1750 def adaptLabel(self, label: str) -> DM: 1809 def getLabel(self, name: str) -> DMLabel: 2006 def hasLabel(self, name: str) -> bool: 2027 def createLabel(self, name: str) -> None: 2046 def removeLabel(self, name: str) -> None: 2068 def getLabelValue(self, name: str, point: int) -> int: [all …]
|
| H A D | TAO.pyx | 173 def setType(self, tao_type: Type | str) -> None: 309 …bjective: TAOObjectiveFunction, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None … 334 …al: TAOResidualFunction, Vec R, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None … 361 …nction, Mat J=None, Mat P=None, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None … 394 …AOGradientFunction, Vec g=None, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None … 452 …veGradientFunction, Vec g=None, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None … 498 …c] | TAOVariableBoundsFunction, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None … 534 …onstraintsFunction, Vec C=None, args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None … 564 … args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = None) -> None: 617 … args: tuple[Any, ...] | None = None, kargs: dict[str, Any] | None = None) -> None: [all …]
|
| /petsc/doc/ext/ |
| H A D | html5_petsc.py | 100 def _add_manpage_links(self, string: str) -> str: 196 def htmlmap_to_dict(htmlmap_filename: str) -> Dict[str,str]: 212 def dict_complete_links(string_to_link: Dict[str,str], prefix: str = '') -> Dict[str,str]: argument 216 def link_string(name: str, link: str, prefix: str) -> str:
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_str.py | 134 def __getattr__(self, attr: str) -> SectionBase: 188 def find(self, heading: str, cache_result: bool = True, strict: bool = False) -> SectionBase: 322 def is_heading(self, line: str, prev_line: str) -> Verdict: 337 def handle_header_with_colon(text: str) -> Verdict: 359 def handle_header_without_colon(line: str, prev_line: str) -> Verdict: 379 …def fuzzy_find_section(self, line: str, strict: bool = False, **kwargs) -> tuple[str, str, Section… 499 def _is_valid_docstring(cls, cursor: Cursor, raw: str, doc_extent: SourceRange) -> bool: 617 def str_remove_prefix(string: str, prefix: str) -> str: 664 def make_source_range(self, token: str, string: str, lineno: int, offset: int = 0) -> SourceRange: 693 …def make_diagnostic(self, kind: DiagnosticKind, diag_flag: str, msg: str, src_range: Optional[Unio… [all …]
|
| H A D | _doc_section_base.py | 37 …def __init__(self, raw: str, prefixes: Optional[Sequence[str]] = None, expected_sep: str = '-') ->… 80 def split_param(text: str, prefixes: Sequence[str], sep: str) -> tuple[str, str, str]: 167 def __diagnostic_prefix__(cls, *flags: str) -> collections.deque[str]: 171 …def diagnostic_flag(cls, text: Union[str, collections.deque[str]], *, prefix: str = 'doc') -> coll… 227 …def __init__(self, name: str, required: bool = False, keywords: Optional[tuple[str, ...]] = None, … 316 …def consume(self, data: Collection[tuple[SourceRange, str, Verdict]]) -> list[tuple[SourceRange, s… argument 391 def transform(text: str) -> str: 464 …dings: Optional[Sequence[tuple[SourceRange, str, Verdict]]] = None, transform: Optional[Callable[[… argument 572 …string: PetscDocStringImpl, headings: Optional[Sequence[tuple[SourceRange, str, Verdict]]] = None)… argument 676 … def __call__(self, ds: PetscDocStringImpl, loc: SourceRange, line: str, verdict: Verdict) -> None: [all …]
|
| H A D | _doc_section.py | 86 … def __call__(self, ds: PetscDocStringImpl, loc: SourceRange, line: str, verdict: Verdict) -> None: 327 … def __call__(self, ds: PetscDocStringImpl, loc: SourceRange, line: str, verdict: Verdict) -> None: 560 def mark_as_seen(self, name: str) -> int: 666 …ocStringImpl, arg_cursors: Sequence[Cursor], not_found: list[tuple[str, SourceRange]], args_left: … 1049 …lid_level_spelling(self, docstring: PetscDocStringImpl, loc: SourceRange, level_name: str) -> None: 1064 def make_sub_loc(loc: SourceRange, substr: str) -> SourceRange: 1221 def transform(text: str) -> str: 1225 def __make_deletion_patch(loc: SourceRange, text: str, look_behind: bool) -> Patch: 1301 …ial_chars(self, docstring: PetscDocStringImpl, item_remain: list[tuple[SourceRange, str]]) -> None: argument 1311 def enclosed_by(string: str, char: str) -> bool: [all …]
|
| /petsc/share/petsc/matlab/ |
| H A D | PetscReadBinaryMatlab.m | 26 str = str(1+matlabHeaderLen:end); variable 30 str = 'fd = PetscOpenFile(Set.filename);'; variable 32 str = '%'; variable 34 str = 'close(fd);'; variable
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/ |
| H A D | _utility.py | 190 def get_petsc_extra_includes(petsc_dir: Path, petsc_arch: str) -> list[str]: 220 def split_and_strip(line: str) -> list[str]: 231 def filter_flags(flags: list[str], keep_prefix: str) -> Iterable[str]: 262 def build_compiler_flags(petsc_dir: Path, petsc_arch: str, extra_compiler_flags: Optional[list[str]… 336 …def from_flags(cls, petsc_dir: Path, compiler_flags: list[str], extra_header_includes: Optional[li…
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _util.py | 38 …_fix_to_bad_source(linter: Linter, obj: Cursor, func_cursor: Cursor, valid_func_name: str) -> None: 106 …_not_type_y(type_x: str, type_y: str, linter: Linter, obj: Cursor, obj_type: clx.Type, func_cursor… 189 def check_is_not_type(typename: str, linter: Linter, obj: Cursor, func_cursor: Cursor, valid_func: … 256 …j: Cursor, obj_type: clx.Type, func_cursor: Optional[Cursor] = None, valid_func: str = '') -> bool: 374 def _do_check_traceable_to_parent_args(obj: Cursor, parent_arg_names: tuple[str, ...], trace: list[… 514 def check_traceable_to_parent_args(obj: Cursor, parent_arg_names: tuple[str, ...]) -> tuple[int, li…
|
| H A D | _register.py | 19 def filter_check_function_map(allowed_symbol_names: Collection[str]) -> None: 49 def register_classid(struct_name: str, classid_name: str, exist_ok: bool = False) -> None: 69 def register_symbol_check(name: str, function: FunctionChecker, exist_ok: bool = False) -> None:
|