1 |
commit: 8b10dc3f5bd1ed85f0944ca6f2e9bb6fdafa7f40 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 4 14:08:09 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 4 19:27:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=8b10dc3f |
7 |
|
8 |
pylintrc: add more module checks |
9 |
|
10 |
* Repo is already clear... so let's turn these on |
11 |
|
12 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
13 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
14 |
|
15 |
.editorconfig | 5 ++++- |
16 |
pylintrc | 27 +++++++++++++++++---------- |
17 |
2 files changed, 21 insertions(+), 11 deletions(-) |
18 |
|
19 |
diff --git a/.editorconfig b/.editorconfig |
20 |
index da06fc19f..355129b9b 100644 |
21 |
--- a/.editorconfig |
22 |
+++ b/.editorconfig |
23 |
@@ -1,4 +1,4 @@ |
24 |
-# Copyright 2017 Gentoo Foundation |
25 |
+# Copyright 2017-2020 Gentoo Authors |
26 |
|
27 |
root = true |
28 |
|
29 |
@@ -12,3 +12,6 @@ insert_final_newline = true |
30 |
|
31 |
[*.{yaml,yml}] |
32 |
indent_style = space |
33 |
+ |
34 |
+[pylintrc] |
35 |
+indent_style = space |
36 |
|
37 |
diff --git a/pylintrc b/pylintrc |
38 |
index ad32f70d7..cdfd48653 100644 |
39 |
--- a/pylintrc |
40 |
+++ b/pylintrc |
41 |
@@ -13,16 +13,23 @@ |
42 |
#disable=no-absolute-import,bad-continuation,C0103,C0114,C0115,E1101,W0201,no-name-in-module |
43 |
disable=all |
44 |
enable= |
45 |
- missing-final-newline, |
46 |
- mixed-line-endings, |
47 |
- redefined-builtin, |
48 |
- reimported, |
49 |
- trailing-newlines, |
50 |
- trailing-whitespace, |
51 |
- unexpected-line-ending-format, |
52 |
- unnecessary-semicolon, |
53 |
- unused-import, |
54 |
- useless-object-inheritance |
55 |
+ cyclic-import, |
56 |
+ import-error, |
57 |
+ import-self, |
58 |
+ misplaced-future, |
59 |
+ missing-final-newline, |
60 |
+ mixed-line-endings, |
61 |
+ redefined-builtin, |
62 |
+ reimported, |
63 |
+ relative-beyond-top-level, |
64 |
+ trailing-newlines, |
65 |
+ trailing-whitespace, |
66 |
+ unexpected-line-ending-format, |
67 |
+ unnecessary-semicolon, |
68 |
+ unused-import, |
69 |
+ useless-import-alias, |
70 |
+ useless-object-inheritance, |
71 |
+ wildcard-import |
72 |
|
73 |
# A comma-separated list of package or module names from where C extensions may |
74 |
# be loaded. Extensions are loading into the active Python interpreter and may |