diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2019-11-11 19:02:55 +0000 |
---|---|---|
committer | Chandan Singh <chandan@chandansingh.net> | 2019-11-14 21:18:52 +0000 |
commit | efbe908ba51048a47ffe937b77d5600b34f4ca12 (patch) | |
tree | e0def8de4d90815d86993abbbac2563b51e45301 /.pylintrc | |
parent | e7d7c1f4b76e112ed7e5d32cf4e053fb69cbc121 (diff) | |
download | buildstream-efbe908ba51048a47ffe937b77d5600b34f4ca12.tar.gz |
.pylintrc: Disable formatting messages
Since we use Black to format our code, disable code-formatting messages
from Pylint as they are already taken care of by Black. This ensures
that we don't get double warnings for the same problem, and that Pylint
and Black don't fight with each other over style.
Diffstat (limited to '.pylintrc')
-rw-r--r-- | .pylintrc | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -64,7 +64,7 @@ confidence= # no Warning level messages displayed, use"--disable=all --enable=classes # --disable=W" -# We have two groups of disabled messages: +# We have three groups of disabled messages: # # 1) Messages that are of no use to us # This is either because we don't follow the convention @@ -76,6 +76,10 @@ confidence= # some issues that just grew out of control. Resolving these would # be nice, but too much work atm. # +# 3) Messages related to code formatting +# Since we use Black to format code automatically, there's no need for +# pylint to also check for those things. +# disable=##################################### # Messages that are of no use to us # @@ -111,6 +115,14 @@ disable=##################################### unused-argument, + ################################################## + # Formatting-related messages, enforced by Black # + ################################################## + + bad-continuation, + line-too-long, + superfluous-parens, + # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option |