StackStorm / st2sdk

This repository contains different utilities and tools which help with the StackStorm integration pack development.
Apache License 2.0
10 stars 11 forks source link

Use separate pylintrc for Exchange pack checks #31

Closed blag closed 4 years ago

blag commented 4 years ago

Uses https://github.com/StackStorm/lint-configs/blob/master/python/.pylintrc-exchange, which adds lib to ignored-modules.

This is necessary for Python 3, which does not allow implicit relative imports. However, for each action in a pack, ST2 itself adds actions/lib to PYTHONPACK, so what looks like an implicit relative import is not actually.

For testing, since that module is not actually importable, pylint needs to be told to ignore that "missing" module.

This should fix the following Python 3 pack build failures: