Gentoo Archives: gentoo-portage-dev

From: antarus@g.o
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] First draft of a portage pylint.
Date: Fri, 10 Jan 2014 09:37:59
Message-Id: 1389346689-29957-1-git-send-email-antarus@gentoo.org
1 From: Alec Warner <antarus@g.o>
2
3 ---
4 pylintrc | 31 +++++++++++++++++++++++++++++++
5 1 file changed, 31 insertions(+)
6 create mode 100644 pylintrc
7
8 diff --git a/pylintrc b/pylintrc
9 new file mode 100644
10 index 0000000..cc15ec4
11 --- /dev/null
12 +++ b/pylintrc
13 @@ -0,0 +1,31 @@
14 +[MASTER]
15 +profile=no
16 +ignore=.git
17 +persistent=no
18 +
19 +[REPORTS]
20 +# Don't print reports by default, they are spammy. We primarily want linting.
21 +reports=no
22 +
23 +[BASIC]
24 +# Portage uses stuff like i,j,k for counters, e,ex for exceptions.
25 +# Don't feel too guilty about adding stuff to here.
26 +
27 +# NOTE(antarus): Don't add 'x' here, as it is currently used inappropriately
28 +# in a ton of legacy code. We want to fix those, then I'd consider adding 'x' and 'y'
29 +good-names=i,j,k,e,ex
30 +
31 +[FORMAT]
32 +# Portage uses tabs for indenting
33 +indent-string='\t'
34 +
35 +# We have arbitrarily chosen 80 chars.
36 +# Some lines will be anonying to fix (mostly urls, and other long strings.)
37 +# You should use inline pylint disable messages to silence those.
38 +max-line-length=80
39 +
40 +# Just make it really large for now.
41 +max-module-lines=20000
42 +
43 +#[MESSAGES CONTROL]
44 +#disable-msg=W0312
45 --
46 1.8.1.2

Replies

Subject Author
Re: [gentoo-portage-dev] [PATCH] First draft of a portage pylint. Alexander Berntsen <alexander@××××××.net>
Re: [gentoo-portage-dev] [PATCH] First draft of a portage pylint. Mike Frysinger <vapier@g.o>