File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ def register(linter):
19
19
name_checker .config .good_names += ('qs' ,)
20
20
21
21
# Default pylint.checkers.base.CONST_NAME_RGX = re.compile('(([A-Z_][A-Z0-9_]*)|(__.*__))$').
22
- start = name_checker .config .const_rgx .pattern [:- 2 ]
23
- end = name_checker .config .const_rgx .pattern [- 2 :]
24
- const_rgx = '%s|(urls|urlpatterns|register)%s' % (start , end )
25
- name_checker .config .const_rgx = re .compile (const_rgx )
22
+ # todo: this has been removed from pylint in
23
+ # https://github.com/PyCQA/pylint/commit/5b72e7f886ee9993025c9564d918de21cbf5acd0
24
+ # start = name_checker.config.const_rgx.pattern[:-2]
25
+ # end = name_checker.config.const_rgx.pattern[-2:]
26
+ # const_rgx = '%s|(urls|urlpatterns|register)%s' % (start, end)
27
+ # name_checker.config.const_rgx = re.compile(const_rgx)
26
28
27
29
# we don't care about South migrations
28
30
linter .config .black_list += ('migrations' , 'south_migrations' )
You can’t perform that action at this time.
0 commit comments