-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Unpin pydocstyle #18200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unpin pydocstyle #18200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, actually, this crashed, but didn't exit with an error?
2020-08-08T00:32:34.0726903Z multiprocessing.pool.RemoteTraceback:
2020-08-08T00:32:34.0727442Z """
2020-08-08T00:32:34.0727740Z Traceback (most recent call last):
2020-08-08T00:32:34.0729039Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/multiprocessing/pool.py", line 125, in worker
2020-08-08T00:32:34.0729560Z result = (True, func(*args, **kwds))
2020-08-08T00:32:34.0730104Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
2020-08-08T00:32:34.0730427Z return list(map(*args))
2020-08-08T00:32:34.0731447Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8/checker.py", line 655, in _run_checks
2020-08-08T00:32:34.0731775Z return checker.run_checks()
2020-08-08T00:32:34.0732673Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8/checker.py", line 589, in run_checks
2020-08-08T00:32:34.0733040Z self.run_ast_checks()
2020-08-08T00:32:34.0733646Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8/checker.py", line 496, in run_ast_checks
2020-08-08T00:32:34.0733978Z for (line_number, offset, text, _) in runner:
2020-08-08T00:32:34.0734557Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8_docstrings.py", line 131, in run
2020-08-08T00:32:34.0734904Z for error in self._check_source():
2020-08-08T00:32:34.0735499Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8_docstrings.py", line 112, in _check_source
2020-08-08T00:32:34.0735879Z for err in self.checker.check_source(
2020-08-08T00:32:34.0736492Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/pydocstyle/checker.py", line 123, in check_source
2020-08-08T00:32:34.0736835Z for error in errors:
2020-08-08T00:32:34.0737458Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/pydocstyle/checker.py", line 915, in check_docstring_sections
2020-08-08T00:32:34.0737823Z found_numpy = yield from self._check_numpy_sections(lines, definition, docstring)
2020-08-08T00:32:34.0738607Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/pydocstyle/checker.py", line 879, in _check_numpy_sections
2020-08-08T00:32:34.0738968Z yield from self._check_numpy_section(docstring, definition, ctx)
2020-08-08T00:32:34.0739604Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/pydocstyle/checker.py", line 693, in _check_numpy_section
2020-08-08T00:32:34.0739947Z yield from cls._check_parameters_section(docstring, definition, context)
2020-08-08T00:32:34.0740617Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/pydocstyle/checker.py", line 731, in _check_parameters_section
2020-08-08T00:32:34.0740968Z yield from ConventionChecker._check_missing_args(docstring_args, definition)
2020-08-08T00:32:34.0741579Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/pydocstyle/checker.py", line 762, in _check_missing_args
2020-08-08T00:32:34.0741938Z function_args = get_function_args(definition.source)
2020-08-08T00:32:34.0742548Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/pydocstyle/checker.py", line 1002, in get_function_args
2020-08-08T00:32:34.0742888Z function_arg_node = ast.parse(textwrap.dedent(function_string)).body[0].args
2020-08-08T00:32:34.0743403Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/ast.py", line 47, in parse
2020-08-08T00:32:34.0743724Z return compile(source, filename, mode, flags,
2020-08-08T00:32:34.0744052Z File "<unknown>", line 1
2020-08-08T00:32:34.0744329Z def quiver(self, *args,
2020-08-08T00:32:34.0744620Z ^
2020-08-08T00:32:34.0744884Z IndentationError: unexpected indent
2020-08-08T00:32:34.0745160Z """
2020-08-08T00:32:34.0745330Z
2020-08-08T00:32:34.0745612Z The above exception was the direct cause of the following exception:
2020-08-08T00:32:34.0745843Z
2020-08-08T00:32:34.0746106Z Traceback (most recent call last):
2020-08-08T00:32:34.0746460Z File "/opt/hostedtoolcache/Python/3.8.5/x64/bin/flake8", line 8, in <module>
2020-08-08T00:32:34.0746784Z sys.exit(main())
2020-08-08T00:32:34.0747385Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8/main/cli.py", line 22, in main
2020-08-08T00:32:34.0747712Z app.run(argv)
2020-08-08T00:32:34.0748301Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8/main/application.py", line 360, in run
2020-08-08T00:32:34.0748632Z self._run(argv)
2020-08-08T00:32:34.0749209Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8/main/application.py", line 348, in _run
2020-08-08T00:32:34.0749535Z self.run_checks()
2020-08-08T00:32:34.0750279Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8/main/application.py", line 262, in run_checks
2020-08-08T00:32:34.0750670Z self.file_checker_manager.run()
2020-08-08T00:32:34.0751244Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8/checker.py", line 323, in run
2020-08-08T00:32:34.0751565Z self.run_parallel()
2020-08-08T00:32:34.0752145Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/flake8/checker.py", line 289, in run_parallel
2020-08-08T00:32:34.0752469Z for ret in pool_map:
2020-08-08T00:32:34.0752937Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/multiprocessing/pool.py", line 448, in <genexpr>
2020-08-08T00:32:34.0754871Z return (item for chunk in result for item in chunk)
2020-08-08T00:32:34.0755114Z File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/multiprocessing/pool.py", line 868, in next
2020-08-08T00:32:34.0755268Z raise value
2020-08-08T00:32:34.0755464Z File "<unknown>", line 1
2020-08-08T00:32:34.0755629Z def quiver(self, *args,
2020-08-08T00:32:34.0755831Z ^
2020-08-08T00:32:34.0755995Z IndentationError: unexpected indent
Ah, I know, we need to set bash to pipefail, so it errors if any part of the pipe fails. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now needs a rebase to see if the tests pass.
f9b3510
to
95a8d67
Compare
rebased. |
Pydocstyle seems to be more picky and partly even incorrect in the reported messages. Needs more investigation. |
7952aab
to
31b2d19
Compare
31b2d19
to
26293f7
Compare
Superseded by #18780 . |
PR Summary
Undo #14710.
The incompatibility has been resolved in flake8-docstring v1.3.1 (https://pypi.org/project/flake8-docstrings/).
Let's see if CI agrees.