2626# 1. Edit the pylintrc file in the edx-lint repo at
2727# https://github.com/edx/edx-lint/blob/master/edx_lint/files/pylintrc
2828#
29- # 2. Make a new version of edx_lint, which involves the usual steps of
30- # incrementing the version number, submitting and reviewing a pull
31- # request, and updating the edx-lint version reference in this repo.
29+ # 2. install the updated version of edx-lint (in edx-lint):
3230#
33- # 3. Install the newer version of edx-lint .
31+ # $ pip install .
3432#
35- # 4 . Run:
33+ # 3 . Run (in edx-lint) :
3634#
35+ # # uses pylintrc_tweaks from edx-lint for linting in edx-lint
36+ # # NOTE: Use Python 3.x, which no longer includes comments in the output file
3737# $ edx_lint write pylintrc
3838#
39- # 5. This will modify the local file. Submit a pull request to get it
39+ # 4. Make a new version of edx_lint, submit and review a pull request with the
40+ # pylintrc update, and after merging, update the edx-lint version by
41+ # creating a new tag in the repo (uses pbr).
42+ #
43+ # 5. In your local repo, install the newer version of edx-lint.
44+ #
45+ # 6. Run:
46+ #
47+ # # uses local pylintrc_tweaks
48+ # $ edx_lint write pylintrc
49+ #
50+ # 7. This will modify the local file. Submit a pull request to get it
4051# checked in so that others will benefit.
4152#
4253#
5364#
5465# ------------------------------
5566[MASTER]
56- ignore = migrations
67+ ignore = , migrations, settings, wsgi.py
5768persistent = yes
58- load-plugins = caniusepython3.pylint_checker, edx_lint.pylint,pylint_django,pylint_celery
69+ load-plugins = edx_lint.pylint,pylint_django,pylint_celery
5970
6071[MESSAGES CONTROL]
6172enable =
@@ -248,7 +259,6 @@ enable =
248259 too-many-statements,
249260 too-many-boolean-expressions,
250261
251- ungrouped-imports,
252262 wrong-import-order,
253263 wrong-import-position,
254264 wildcard-import,
@@ -289,11 +299,13 @@ disable =
289299 dict-view-method,
290300 duplicate-code,
291301 execfile-builtin,
302+ feature-toggle-needs-doc,
292303 file-builtin,
293304 filter-builtin-not-iterating,
294305 fixme,
295306 getslice-method,
296307 hex-method,
308+ illegal-waffle-usage,
297309 import-star-module-level,
298310 indexing-exception,
299311 input-builtin,
@@ -335,12 +347,13 @@ disable =
335347 too-many-locals,
336348 too-many-public-methods,
337349 too-many-return-statements,
350+ ungrouped-imports,
338351 unichr-builtin,
339352 unicode-builtin,
340353 unpacking-in-except,
341354 using-cmp-argument,
342355 xrange-builtin,
343- zip-builtin-not-iterating,
356+ zip-builtin-not-iterating,,invalid-name,useless-object-inheritance
344357
345358[REPORTS]
346359output-format = text
@@ -351,7 +364,7 @@ evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / state
351364[BASIC]
352365bad-functions = map,filter,apply,input
353366module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
354- const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__)|log|urlpatterns)$
367+ const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__)|log|urlpatterns|logger|User )$
355368class-rgx = [A-Z_][a-zA-Z0-9]+$
356369function-rgx = ([a-z_][a-z0-9_]{2,40}|test_[a-z0-9_]+)$
357370method-rgx = ([a-z_][a-z0-9_]{2,40}|setUp|set[Uu]pClass|tearDown|tear[Dd]ownClass|assert[A-Z]\w*|maxDiff|test_[a-z0-9_]+)$
@@ -367,7 +380,7 @@ docstring-min-length = 5
367380
368381[FORMAT]
369382max-line-length = 120
370- ignore-long-lines = ^\s*(# )?<?https?://\S+>?$
383+ ignore-long-lines = ^\s*(# )?(( <?https?://\S+>?)|(\.\. \w+: .*)) $
371384single-line-if-stmt = no
372385no-space-check = trailing-comma,dict-separator
373386max-module-lines = 1000
@@ -440,4 +453,4 @@ int-import-graph =
440453[EXCEPTIONS]
441454overgeneral-exceptions = Exception
442455
443- # 6221f5507b1554d42ba7e841083736b0e7ebed77
456+ # 2baa8e2454b99e258f3d547e787ce30ef4557e22
0 commit comments