From 0a0219d9dc782eddf12953451ec94da4e6512ba2 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 10 Dec 2018 15:31:16 -0500 Subject: [PATCH] New edx-lint has unicode-format-string, disable it for now. --- pylintrc | 4 ++-- pylintrc_tweaks | 4 ++++ requirements/edx/testing.in | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pylintrc b/pylintrc index 30e67dcb30..f664b86f3e 100644 --- a/pylintrc +++ b/pylintrc @@ -345,7 +345,7 @@ disable = unpacking-in-except, using-cmp-argument, xrange-builtin, - zip-builtin-not-iterating, + zip-builtin-not-iterating,,unicode-format-string [REPORTS] output-format = text @@ -445,4 +445,4 @@ int-import-graph = [EXCEPTIONS] overgeneral-exceptions = Exception -# cb770bb6272f6fe1edfd74aa1fb912be5541481c +# c8b8d35a9a123f3c2eb3ce0cb466156bab2beedc diff --git a/pylintrc_tweaks b/pylintrc_tweaks index 1fdd6e1b25..6b4126f96c 100644 --- a/pylintrc_tweaks +++ b/pylintrc_tweaks @@ -3,6 +3,10 @@ ignore+ = ,.git,.tox,migrations,node_modules,.pycharm_helpers init-hook="import sys; sys.path.extend(['lms/djangoapps', 'cms/djangoapps', 'common/djangoapps'])" +[MESSAGES CONTROL] +# Disable unicode-format-string until we can agree to turn it on. +disable+ = ,unicode-format-string + [BASIC] attr-rgx = [a-z_][a-z0-9_]{2,40}$ argument-rgx = [a-z_][a-z0-9_]{2,40}$ diff --git a/requirements/edx/testing.in b/requirements/edx/testing.in index 9834405ee3..329ffe9788 100644 --- a/requirements/edx/testing.in +++ b/requirements/edx/testing.in @@ -23,7 +23,7 @@ bok-choy # Framework for browser automation tests, based on sel cssselect # Used to extract HTML fragments via CSS selectors in 2 test cases and pyquery ddt # Run a test case multiple times with different input; used in many, many of our tests edx-i18n-tools>=0.4.6 # Commands for developers and translators to extract, compile and validate translations -edx-lint==0.6.0 # pylint extensions for Open edX repositories +edx-lint==1.0.0 # pylint extensions for Open edX repositories factory_boy==2.8.1 # Library for creating test fixtures, used in many tests freezegun # Allows tests to mock the output of assorted datetime module functions httpretty # Library for mocking HTTP requests, used in many tests