File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed
Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1+ [pytest]
2+ filterwarnings =
3+ error
4+ # docutils planned change in 0.21 without clear solution yet
5+ ignore:The frontend.*:DeprecationWarning
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ author_email = openstack-discuss@lists.openstack.org
1616maintainer = PyCQA
1717maintainer_email = code-quality@python.org
1818license = Apache 2.0
19- license_file = LICENSE
19+ license_files = LICENSE
2020classifiers =
2121 Development Status :: 5 - Production/Stable
2222
@@ -60,7 +60,9 @@ include_package_data = True
6060zip_safe = False
6161# These are required in actual runtime:
6262install_requires =
63- docutils
63+ # Ceiled due to DeprecationWarning: The frontend.OptionParser class will be
64+ # replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
65+ docutils>=0.19,<0.21
6466 restructuredtext-lint>=0.7
6567 stevedore
6668 tomli; python_version < '3.11'
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def extract_lines(node, start_line):
160160
161161 def gather_lines (node ):
162162 lines = []
163- for n in node .traverse (include_self = True ):
163+ for n in node .findall (include_self = True ):
164164 lines .extend (extract_lines (n , find_line (n )))
165165 return lines
166166
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def path_ignorable(path):
5757
5858
5959def filtered_traverse (document , filter_func ):
60- for n in document .traverse (include_self = True ):
60+ for n in document .findall (include_self = True ):
6161 if filter_func (n ):
6262 yield n
6363
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ isolated_build = True
66[testenv]
77deps =
88 -r{toxinidir}/test-requirements.txt
9- commands = pytest {posargs}
9+ commands = pytest -v {posargs}
1010whitelist_externals =
1111 rm
1212 sh
You can’t perform that action at this time.
0 commit comments