PyCQA / pydocstyle

docstring style checker
http://pydocstyle.org
MIT License
1.11k stars 188 forks source link

Add Python 3.11 to the testing #612

Closed cclauss closed 1 year ago

cclauss commented 1 year ago

Thanks for submitting a PR!

Please make sure to check for the following items:

Please don't get discouraged as it may take a while to get a review.

cclauss commented 1 year ago

Should help to test #608

cclauss commented 1 year ago

On Python 3.11...

Running Sphinx v1.6.2
making output directory...

Exception occurred:
  File "/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/re/_parser.py", line 841, in _parse
    raise source.error('global flags not at the start '
re.error: global flags not at the start of the expression at position 3

https://docs.python.org/3.11/whatsnew/3.11.html

In re Regular Expression Syntax, global inline flags (e.g. (?i)) can now only be used at the start of regular expressions. Using them elsewhere has been deprecated since Python 3.6. (Contributed by Serhiy Storchaka in bpo-47066.)

cclauss commented 1 year ago

@serhiy-storchaka Your thoughts, please?

serhiy-storchaka commented 1 year ago

Is the full traceback available? This can help identify the regular expression that needs to be corrected.

samj1912 commented 1 year ago

The failure was happening in Sphinx. Since we have enabled read the docs PR apps, the doc generation in github actions is no longer needed. A larger term fix would involve updating the Sphinx version (from 1.6.x to 6.0)