Linters
Checks if requested linter (or static type checker) is available.
Attributes
supported |
dict |
Dictionary of supported linters. The key (e.g. radon-cc ) maps to the full command (e.g. ["radon", "cc"] ). |
Methods
check_available
linters.Linters.check_available(linter_name)
Check if a linter is available in the user’s system.
Parameters
linter_name |
str |
Name of the linter to check. |
required |
Raises
|
FileNotFoundError |
If the linter’s command is not found in the user’s PATH. |
check_supported
linters.Linters.check_supported(linter_name)
Check if linter is supported by lintquarto.
Parameters
linter_name |
str |
Name of the linter to check. |
required |
Raises
|
ValueError |
If linter is not supported. |