public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: antarus@gentoo.org
To: gentoo-portage-dev@lists.gentoo.org
Subject: [gentoo-portage-dev] [PATCH] First draft of a portage pylint.
Date: Fri, 10 Jan 2014 01:38:09 -0800	[thread overview]
Message-ID: <1389346689-29957-1-git-send-email-antarus@gentoo.org> (raw)

From: Alec Warner <antarus@gentoo.org>

---
 pylintrc | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 pylintrc

diff --git a/pylintrc b/pylintrc
new file mode 100644
index 0000000..cc15ec4
--- /dev/null
+++ b/pylintrc
@@ -0,0 +1,31 @@
+[MASTER]
+profile=no
+ignore=.git
+persistent=no
+
+[REPORTS]
+# Don't print reports by default, they are spammy. We primarily want linting.
+reports=no
+
+[BASIC]
+# Portage uses stuff like i,j,k for counters, e,ex for exceptions.
+# Don't feel too guilty about adding stuff to here.
+
+# NOTE(antarus): Don't add 'x' here, as it is currently used inappropriately
+# in a ton of legacy code. We want to fix those, then I'd consider adding 'x' and 'y'
+good-names=i,j,k,e,ex
+
+[FORMAT]
+# Portage uses tabs for indenting
+indent-string='\t'
+
+# We have arbitrarily chosen 80 chars.
+# Some lines will be anonying to fix (mostly urls, and other long strings.)
+# You should use inline pylint disable messages to silence those.
+max-line-length=80
+
+# Just make it really large for now.
+max-module-lines=20000
+
+#[MESSAGES CONTROL]
+#disable-msg=W0312
-- 
1.8.1.2



             reply	other threads:[~2014-01-10  9:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-10  9:38 antarus [this message]
2014-01-11  2:51 ` [gentoo-portage-dev] [PATCH] First draft of a portage pylint Alexander Berntsen
2014-01-13 23:27 ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1389346689-29957-1-git-send-email-antarus@gentoo.org \
    --to=antarus@gentoo.org \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox