erc7730.lint.lint module

erc7730.lint.lint.lint_all(paths: list[Path], out: OutputAdder) None[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:

output errors

erc7730.lint.lint.lint_all_and_print_errors(paths: list[Path], gha: bool) bool[source]View on GitHub
erc7730.lint.lint.lint_file(path: Path, linter: ERC7730Linter, out: OutputAdder) None[source]View on GitHub

Lint a single ERC-7730 descriptor file.

Parameters:
  • path – ERC-7730 descriptor file path

  • linter – linter instance

  • out – error handler