Elliot
Elliot

Reputation: 5541

Pylint - Ignore errors from a designated package

Due to how a package I am using works, any use of a function from it causes pylint to declare there is an no such function and stop execution (Github issue), which is making it impossible to work with. The package is functional, just in a way that causes pylint to throw a false positive. How do I tell pylint to ignore a package?

Upvotes: 0

Views: 1918

Answers (1)

Paul Cornelius
Paul Cornelius

Reputation: 10936

Some modules and packages cannot be understood by the pylint inference mechanism. Add a line to the pylint configuration file ignored-modules=x, y, z that tells Pylint to stop checking for missing members from modules x, y and z. See the comments in the default configuration file.

Upvotes: 3

Related Questions