How to tweak pylint for SA models?

268 views
Skip to first unread message

Ralph Heinkel

unread,
Feb 3, 2011, 11:29:27 AM2/3/11
to sqlal...@googlegroups.com
Hi,

we are about fitting pylint's configuration to work with out software. One problem area is when we access SA models. Due to all attributes being set dynamically  pylint assumes that we want to access non-existing attributes and reports either E1101 or E1103 error codes.

Does anyone have a way to either get around this
- without globally disabling those errors in pylint (I also would miss really invalid attribute accesses)
- without adding a  # pylint: disable-msg=....     to each line where an attribute is used (would make python code rather unreadable)

Help hint would be appreciated.

Thanks,

Ralph


kris

unread,
Jun 9, 2011, 8:20:44 PM6/9/11
to sqlal...@googlegroups.com
Did you ever find a solution to this?  I am facing the same issue.


Michael Bayer

unread,
Jun 9, 2011, 8:24:09 PM6/9/11
to sqlal...@googlegroups.com
I would think using declarative would solve most of it as the attributes are defined explicitly on the class.




On Jun 9, 2011, at 8:20 PM, kris wrote:

Did you ever find a solution to this?  I am facing the same issue.



--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/Rt3A6BJIeWIJ.
To post to this group, send email to sqlal...@googlegroups.com.
To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.

Reply all
Reply to author
Forward
0 new messages