You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While following the documentation's quickstart in a project, I encountered the following error after running pre-commit with the .pre-commit-config.yaml provided there:
(precommit) ➜ precommit git:(main) ✗ pre-commit run --all-files
Check Yaml...............................................................Passed
Fix End of Files.........................................................Passed
Trim Trailing Whitespace.................................................Passed
black....................................................................Failed
- hook id: black
- exit code: 123
error: cannot format src/main.py: Cannot parse: 2:16: if amazing_var := amazing_bool is None:
All done! 💥 💔 💥
1 file failed to reformat.
At first, I thought it was a problem with black, and it had been in fact, but it was fixed. I easily fixed by changing
While following the documentation's quickstart in a project, I encountered the following error after running
pre-commit
with the.pre-commit-config.yaml
provided there:At first, I thought it was a problem with black, and it had been in fact, but it was fixed. I easily fixed by changing
to
It'd be a good idea to change that.
The text was updated successfully, but these errors were encountered: