Skip to content

genie_python linter

John Holt edited this page Feb 12, 2020 · 3 revisions

Wiki > genie_python > linter information

On g.load_script genie_python now runs pylint on the scripts. This help the user see errors before the script is run. However sometimes this causes its own issues. There is a page in the user manual describing what the user should do.

Here are some more tips that we don't necessarily want to encourage.

Warnigns can be removed from a line by adding a comment

<line> # pylint disable=<warning name>

e.g. from IMAT_library import * # pylint: disable=wildcard-import, unused-wildcard-import

Clone this wiki locally