Commit 60cf58c
committed
Update to latest version of
This is a dependency of the `black` Python code formatter used by this project. An incompatibility with the previously
used version of `regex` was introduced in [email protected], which resulted an error when running it:
```
• Installing regex (2020.11.13)
[...]
task: [python:format] poetry run black .
Traceback (most recent call last):
File "/home/runner/.cache/pypoetry/virtualenvs/arduino-lint-E2I5XaEt-py3.9/bin/black", line 5, in <module>
from black import patched_main
File "/home/runner/.cache/pypoetry/virtualenvs/arduino-lint-E2I5XaEt-py3.9/lib/python3.9/site-packages/black/__init__.py", line 39, in <module>
from black.nodes import STARS, syms, is_simple_decorator_expression
File "/home/runner/.cache/pypoetry/virtualenvs/arduino-lint-E2I5XaEt-py3.9/lib/python3.9/site-packages/black/nodes.py", line 31, in <module>
from black.strings import has_triple_quotes
File "/home/runner/.cache/pypoetry/virtualenvs/arduino-lint-E2I5XaEt-py3.9/lib/python3.9/site-packages/black/strings.py", line 159, in <module>
def _cached_compile(pattern: str) -> re.Pattern:
AttributeError: module 'regex' has no attribute 'Pattern'
task: Failed to run task "python:format": exit status 1
```
but the black developers seem to have missed updating their version constraints accordingly so the dependency must be
updated manually:
https://github.com/psf/black/blob/21.11b0/Pipfile#L45regex Python package1 parent 1506f06 commit 60cf58c
1 file changed
+50
-42
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments