erc7730.lint.lint module
- erc7730.lint.lint.lint_all(paths: list[Path], out: OutputAdder) int [source]View on GitHub
Lint all ERC-7730 descriptor files at given paths.
Paths can be files or directories, in which case all JSON files in the directory are recursively linted.
- Parameters:
paths – paths to apply linter on
out – output adder
- Returns:
number of files checked
- erc7730.lint.lint.lint_all_and_print_errors(paths: list[Path], gha: bool = False) bool [source]View on GitHub
- erc7730.lint.lint.lint_file(path: Path, linter: ERC7730Linter, out: OutputAdder, show_as: Path | None = None) None [source]View on GitHub
Lint a single ERC-7730 descriptor file.
- Parameters:
path – ERC-7730 descriptor file path
show_as – if provided, print this label instead of the file path
linter – linter instance
out – error handler