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
16
16
maintainer = PyCQA
17
17
maintainer_email = code-quality@python.org
18
18
license = Apache 2.0
19
- license_file = LICENSE
19
+ license_files = LICENSE
20
20
classifiers =
21
21
Development Status :: 5 - Production/Stable
22
22
@@ -60,7 +60,9 @@ include_package_data = True
60
60
zip_safe = False
61
61
# These are required in actual runtime:
62
62
install_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
64
66
restructuredtext-lint>=0.7
65
67
stevedore
66
68
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):
160
160
161
161
def gather_lines (node ):
162
162
lines = []
163
- for n in node .traverse (include_self = True ):
163
+ for n in node .findall (include_self = True ):
164
164
lines .extend (extract_lines (n , find_line (n )))
165
165
return lines
166
166
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def path_ignorable(path):
57
57
58
58
59
59
def filtered_traverse (document , filter_func ):
60
- for n in document .traverse (include_self = True ):
60
+ for n in document .findall (include_self = True ):
61
61
if filter_func (n ):
62
62
yield n
63
63
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ isolated_build = True
6
6
[testenv]
7
7
deps =
8
8
-r{toxinidir}/test-requirements.txt
9
- commands = pytest {posargs}
9
+ commands = pytest -v {posargs}
10
10
whitelist_externals =
11
11
rm
12
12
sh
You can’t perform that action at this time.
0 commit comments