diff options
author | Stephen Finucane <sfinucan@redhat.com> | 2020-02-03 11:44:17 +0000 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2020-02-12 09:56:58 +0000 |
commit | 81589565ba944f2dec9fcdeac4925d28a45ada6b (patch) | |
tree | be9d871c695f3a503d57a27e5e16c2282ab63805 | |
parent | 20a7cee3e3019d60c4b367bb76922a1db41d1750 (diff) | |
download | oslo-config-81589565ba944f2dec9fcdeac4925d28a45ada6b.tar.gz |
Switch to hacking 2.x
This bumps the version of flake8 and pycodestyle to something much
newer, which resolves a long-standing warning about nested sets and
allows us to use new fangled features like f-strings if we so choose.
Note that this requires some minor modifications to keep the 'pep8' task
passing.
Change-Id: I3af8eb490345a6152372730ca3e0a6702bf482ea
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-rw-r--r-- | lower-constraints.txt | 2 | ||||
-rw-r--r-- | oslo_config/_i18n.py | 2 | ||||
-rw-r--r-- | oslo_config/tests/test_cfg.py | 2 | ||||
-rw-r--r-- | test-requirements.txt | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lower-constraints.txt b/lower-constraints.txt index e9a244a..a032c7c 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -11,7 +11,7 @@ fixtures==3.0.0 flake8==2.5.5 gitdb==0.6.4 GitPython==1.0.1 -hacking==0.12.0 +hacking==2.0.0 imagesize==0.7.1 iso8601==0.1.11 Jinja2==2.10 diff --git a/oslo_config/_i18n.py b/oslo_config/_i18n.py index 41960f4..7ef9d7a 100644 --- a/oslo_config/_i18n.py +++ b/oslo_config/_i18n.py @@ -37,4 +37,4 @@ _P = _translators.plural_form def get_available_languages(): - return oslo_i18n.get_available_languages(DOMAIN) + return oslo_i18n.get_available_languages(DOMAIN) diff --git a/oslo_config/tests/test_cfg.py b/oslo_config/tests/test_cfg.py index 302f39f..98bd8e3 100644 --- a/oslo_config/tests/test_cfg.py +++ b/oslo_config/tests/test_cfg.py @@ -2893,7 +2893,7 @@ class TemplateSubstitutionTestCase(BaseTestCase): paths = self.create_tempfiles([('test', '[DEFAULT]\n' - 'bar=foo-somethin\$k2\n')]) + 'bar=foo-somethin\\$k2\n')]) self.conf(['--config-file', paths[0]]) diff --git a/test-requirements.txt b/test-requirements.txt index 0d3ddef..2d1247d 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,7 +2,7 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=1.1.0,<1.2.0 # Apache-2.0 +hacking>=2.0.0,<2.1.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD |