Optional: Add auto-walrus (#158)

To learn the use of the Walrus opperator this hook integrates it in your
code if it finds a reason for it.
This branch is a suggestion of mine to force the use of the walrus
operaor as an autofix to keep it in mind when programming.
This should not increase the workload for us. It just lets us confront a
new programming tool. It also isn't a rull to be follwed. Just a hook
that looks at your code with an autofix.
This commit is contained in:
2023-09-28 17:13:42 +02:00
committed by GitHub
parent 1e2ca627ba
commit 7d6bb8b6f5
2 changed files with 8 additions and 4 deletions

View File

@ -87,3 +87,8 @@ repos:
rev: 0.26.3
hooks:
- id: check-github-workflows
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.2.2
hooks:
- id: auto-walrus