aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2019-09-20 19:29:15 +0200
committerWojciech Polak <polak@gnu.org>2019-09-20 19:29:15 +0200
commitfa8f68aea0ef124d64b239ae4c1adc65456db164 (patch)
treeb925501c7636e34f017927b00f8ed2ba962e3c3a
parentaf816375c950404d8c36665f000d3875e883ed0a (diff)
downloadglifestream-fa8f68aea0ef124d64b239ae4c1adc65456db164.tar.gz
glifestream-fa8f68aea0ef124d64b239ae4c1adc65456db164.tar.bz2
PEP8 fixes
-rw-r--r--.editorconfig16
-rw-r--r--.pylintrc571
-rw-r--r--.vscode/settings.json16
-rw-r--r--glifestream/apis/mail.py6
-rw-r--r--glifestream/apis/twitter.py2
-rw-r--r--glifestream/filters/expand.py18
-rw-r--r--glifestream/filters/twyntax.py1
-rw-r--r--glifestream/gauth/admin.py1
-rw-r--r--glifestream/gauth/views.py6
-rw-r--r--glifestream/stream/admin.py5
-rw-r--r--glifestream/stream/templatetags/gls_filters.py35
-rw-r--r--glifestream/stream/views.py4
-rw-r--r--glifestream/urls.py7
-rw-r--r--glifestream/usettings/urls.py6
-rw-r--r--glifestream/usettings/views.py10
-rw-r--r--glifestream/utils/html.py19
-rw-r--r--glifestream/wsgi.py3
-rw-r--r--glifestream/wsgi.virtualenv.py3
-rw-r--r--requirements.txt1
-rwxr-xr-xworker.py28
20 files changed, 694 insertions, 64 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..087a03b
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,16 @@
1# http://editorconfig.org
2root = true
3
4[*]
5indent_style = space
6indent_size = 4
7end_of_line = lf
8charset = utf-8
9trim_trailing_whitespace = true
10insert_final_newline = true
11
12[*.html]
13indent_size = 2
14
15[*.md]
16trim_trailing_whitespace = false
diff --git a/.pylintrc b/.pylintrc
new file mode 100644
index 0000000..111c68c
--- /dev/null
+++ b/.pylintrc
@@ -0,0 +1,571 @@
1[MASTER]
2
3# A comma-separated list of package or module names from where C extensions may
4# be loaded. Extensions are loading into the active Python interpreter and may
5# run arbitrary code.
6extension-pkg-whitelist=
7
8# Add files or directories to the blacklist. They should be base names, not
9# paths.
10ignore=CVS
11
12# Add files or directories matching the regex patterns to the blacklist. The
13# regex matches against base names, not paths.
14ignore-patterns=
15
16# Python code to execute, usually for sys.path manipulation such as
17# pygtk.require().
18#init-hook=
19
20# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
21# number of processors available to use.
22jobs=1
23
24# Control the amount of potential inferred values when inferring a single
25# object. This can help the performance when dealing with large functions or
26# complex, nested conditions.
27limit-inference-results=100
28
29# List of plugins (as comma separated values of python modules names) to load,
30# usually to register additional checkers.
31load-plugins=
32
33# Pickle collected data for later comparisons.
34persistent=yes
35
36# Specify a configuration file.
37#rcfile=
38
39# When enabled, pylint would attempt to guess common misconfiguration and emit
40# user-friendly hints instead of false-positive error messages.
41suggestion-mode=yes
42
43# Allow loading of arbitrary C extensions. Extensions are imported into the
44# active Python interpreter and may run arbitrary code.
45unsafe-load-any-extension=no
46
47
48[MESSAGES CONTROL]
49
50# Only show warnings with the listed confidence levels. Leave empty to show
51# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
52confidence=
53
54# Disable the message, report, category or checker with the given id(s). You
55# can either give multiple identifiers separated by comma (,) or put this
56# option multiple times (only on the command line, not in the configuration
57# file where it should appear only once). You can also use "--disable=all" to
58# disable everything first and then reenable specific checks. For example, if
59# you want to run only the similarities checker, you can use "--disable=all
60# --enable=similarities". If you want to run only the classes checker, but have
61# no Warning level messages displayed, use "--disable=all --enable=classes
62# --disable=W".
63disable=print-statement,
64 parameter-unpacking,
65 unpacking-in-except,
66 old-raise-syntax,
67 backtick,
68 long-suffix,
69 old-ne-operator,
70 old-octal-literal,
71 import-star-module-level,
72 non-ascii-bytes-literal,
73 raw-checker-failed,
74 bad-inline-option,
75 locally-disabled,
76 file-ignored,
77 suppressed-message,
78 useless-suppression,
79 deprecated-pragma,
80 use-symbolic-message-instead,
81 apply-builtin,
82 basestring-builtin,
83 buffer-builtin,
84 cmp-builtin,
85 coerce-builtin,
86 execfile-builtin,
87 file-builtin,
88 long-builtin,
89 raw_input-builtin,
90 reduce-builtin,
91 standarderror-builtin,
92 unicode-builtin,
93 xrange-builtin,
94 coerce-method,
95 delslice-method,
96 getslice-method,
97 setslice-method,
98 no-absolute-import,
99 old-division,
100 dict-iter-method,
101 dict-view-method,
102 next-method-called,
103 metaclass-assignment,
104 indexing-exception,
105 raising-string,
106 reload-builtin,
107 oct-method,
108 hex-method,
109 nonzero-method,
110 cmp-method,
111 input-builtin,
112 round-builtin,
113 intern-builtin,
114 unichr-builtin,
115 map-builtin-not-iterating,
116 zip-builtin-not-iterating,
117 range-builtin-not-iterating,
118 filter-builtin-not-iterating,
119 using-cmp-argument,
120 eq-without-hash,
121 div-method,
122 idiv-method,
123 rdiv-method,
124 exception-message-attribute,
125 invalid-str-codec,
126 sys-max-int,
127 bad-python3-import,
128 deprecated-string-function,
129 deprecated-str-translate-call,
130 deprecated-itertools-function,
131 deprecated-types-field,
132 next-method-defined,
133 dict-items-not-iterating,
134 dict-keys-not-iterating,
135 dict-values-not-iterating,
136 deprecated-operator-function,
137 deprecated-urllib-function,
138 xreadlines-attribute,
139 deprecated-sys-function,
140 exception-escape,
141 comprehension-escape,
142 missing-docstring
143
144# Enable the message, report, category or checker with the given id(s). You can
145# either give multiple identifier separated by comma (,) or put this option
146# multiple time (only on the command line, not in the configuration file where
147# it should appear only once). See also the "--disable" option for examples.
148enable=c-extension-no-member
149
150
151[REPORTS]
152
153# Python expression which should return a note less than 10 (10 is the highest
154# note). You have access to the variables errors warning, statement which
155# respectively contain the number of errors / warnings messages and the total
156# number of statements analyzed. This is used by the global evaluation report
157# (RP0004).
158evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
159
160# Template used to display messages. This is a python new-style format string
161# used to format the message information. See doc for all details.
162#msg-template=
163
164# Set the output format. Available formats are text, parseable, colorized, json
165# and msvs (visual studio). You can also give a reporter class, e.g.
166# mypackage.mymodule.MyReporterClass.
167output-format=text
168
169# Tells whether to display a full report or only the messages.
170reports=no
171
172# Activate the evaluation score.
173score=yes
174
175
176[REFACTORING]
177
178# Maximum number of nested blocks for function / method body
179max-nested-blocks=5
180
181# Complete name of functions that never returns. When checking for
182# inconsistent-return-statements if a never returning function is called then
183# it will be considered as an explicit return statement and no message will be
184# printed.
185never-returning-functions=sys.exit
186
187
188[BASIC]
189
190# Naming style matching correct argument names.
191argument-naming-style=snake_case
1