scitex.linter

SciTeX Linter — thin wrapper delegating to scitex_dev.linter.

Usage:

import scitex as stx issues = stx.linter.lint_file(“script.py”)

The engine moved from the (now archived) scitex-linter package into scitex_dev.linter as part of the per-package rule migration. This shim re-exports the public surface so existing stx.linter.X callers keep working unchanged.

scitex.linter.lint_file(filepath, config=None)[source]

Lint a Python file, Jupyter notebook, or markdown file.

Returns a list of Issue objects. Missing files yield [].

Return type:

list

scitex.linter.lint_source(source, filepath='<stdin>', config=None)[source]

Lint Python source code and return list of Issues.

Return type:

list

scitex.linter.format_issue(issue, filepath, color=True)[source]
Return type:

str

scitex.linter.format_summary(issues, filepath, color=True)[source]
Return type:

str

scitex.linter.to_json(issues, filepath)[source]
Return type:

dict