summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.pre-commit-config.yaml10
-rw-r--r--.zuul.yaml2
-rw-r--r--doc/source/conf.py2
-rw-r--r--oslo_config/generator.py6
-rw-r--r--oslo_config/tests/test_get_location.py2
-rw-r--r--releasenotes/source/conf.py10
-rw-r--r--releasenotes/source/index.rst29
-rw-r--r--releasenotes/source/wallaby.rst6
-rw-r--r--tox.ini2
9 files changed, 39 insertions, 30 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9d94556..08aef91 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,7 +9,7 @@ default_language_version:
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: ebc15addedad713c86ef18ae9632c88e187dd0af # v3.1.0
+ rev: 9136088a246768144165fcc3ecc3d31bb686920a # v3.3.0
hooks:
- id: trailing-whitespace
# Replaces or checks mixed line ending
@@ -27,9 +27,13 @@ repos:
- id: debug-statements
- id: check-yaml
files: .*\.(yaml|yml)$
- - repo: https://gitlab.com/pycqa/flake8
- rev: 181bb46098dddf7e2d45319ea654b4b4d58c2840 # 3.8.3
+ - repo: local
hooks:
- id: flake8
+ name: flake8
additional_dependencies:
- hacking>=3.0.1,<3.1.0
+ language: python
+ entry: flake8
+ files: '^.*\.py$'
+ exclude: '^(doc|releasenotes|tools)/.*$'
diff --git a/.zuul.yaml b/.zuul.yaml
index 8425030..84bb45c 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -2,7 +2,7 @@
templates:
- check-requirements
- lib-forward-testing-python3
- - openstack-python3-wallaby-jobs
+ - openstack-python3-xena-jobs
- periodic-stable-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 3535e20..975740f 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -51,7 +51,7 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
-copyright = u'2013, OpenStack Foundation'
+copyright = '2013, OpenStack Foundation'
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True
diff --git a/oslo_config/generator.py b/oslo_config/generator.py
index 9fdde09..9845c81 100644
--- a/oslo_config/generator.py
+++ b/oslo_config/generator.py
@@ -288,11 +288,9 @@ class _OptFormatter:
else:
opt_help = opt.help
- help_text = u'%s%s (%s)' % (opt_prefix,
- opt_help,
- opt_type)
+ help_text = '%s%s (%s)' % (opt_prefix, opt_help, opt_type)
else:
- help_text = u'(%s)' % opt_type
+ help_text = '(%s)' % opt_type
lines = self._format_help(help_text)
if getattr(opt.type, 'min', None) is not None:
diff --git a/oslo_config/tests/test_get_location.py b/oslo_config/tests/test_get_location.py
index 9541708..d06271a 100644
--- a/oslo_config/tests/test_get_location.py
+++ b/oslo_config/tests/test_get_location.py
@@ -137,7 +137,7 @@ class GetLocationTestCase(base.BaseTestCase):
def _write_opt_to_tmp_file(self, group, option, value):
filename = tempfile.mktemp()
with io.open(filename, 'w', encoding='utf-8') as f:
- f.write(textwrap.dedent(u'''
+ f.write(textwrap.dedent('''
[{group}]
{option} = {value}
''').format(
diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py
index 92eb659..8fd6fe9 100644
--- a/releasenotes/source/conf.py
+++ b/releasenotes/source/conf.py
@@ -60,7 +60,7 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
-copyright = u'2016, oslo.config Developers'
+copyright = '2016, oslo.config Developers'
# Release notes do not need a version in the title, they span
# multiple versions.
@@ -196,8 +196,8 @@ html_static_path = ['_static']
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'oslo.configreleasenotes',
- u'oslo.config Release Notes Documentation',
- [u'oslo.config Developers'], 1)
+ 'oslo.config Release Notes Documentation',
+ ['oslo.config Developers'], 1)
]
# If true, show URL addresses after external links.
@@ -211,8 +211,8 @@ man_pages = [
# dir menu entry, description, category)
texinfo_documents = [
('index', 'oslo.configReleaseNotes',
- u'oslo.config Release Notes Documentation',
- u'oslo.config Developers', 'oslo.configReleaseNotes',
+ 'oslo.config Release Notes Documentation',
+ 'oslo.config Developers', 'oslo.configReleaseNotes',
'An OpenStack library for parsing configuration options from the command'
' line and configuration files.',
'Miscellaneous'),
diff --git a/releasenotes/source/index.rst b/releasenotes/source/index.rst
index 0ebefc1..7466d11 100644
--- a/releasenotes/source/index.rst
+++ b/releasenotes/source/index.rst
@@ -2,18 +2,19 @@
oslo.config Release Notes
===========================
- .. toctree::
- :maxdepth: 1
+.. toctree::
+ :maxdepth: 1
- unreleased
- victoria
- ussuri
- train
- stein
- rocky
- queens
- pike
- ocata
- newton
- mitaka
- liberty
+ unreleased
+ wallaby
+ victoria
+ ussuri
+ train
+ stein
+ rocky
+ queens
+ pike
+ ocata
+ newton
+ mitaka
+ liberty
diff --git a/releasenotes/source/wallaby.rst b/releasenotes/source/wallaby.rst
new file mode 100644
index 0000000..d77b565
--- /dev/null
+++ b/releasenotes/source/wallaby.rst
@@ -0,0 +1,6 @@
+============================
+Wallaby Series Release Notes
+============================
+
+.. release-notes::
+ :branch: stable/wallaby
diff --git a/tox.ini b/tox.ini
index d8afd86..88e81fe 100644
--- a/tox.ini
+++ b/tox.ini
@@ -45,7 +45,7 @@ commands = {posargs}
[testenv:docs]
whitelist_externals = rm
deps =
- -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
rm -fr doc/build