Releases: MarcoGorelli/auto-walrus
0.3.4
0.3.3
0.3.3
v0.2.1
What's new: don't rewrite lines with comments (e.g. # type: ignore
, # noqa
, etc. ... best to just leave them alone)
Install with
$ pip install auto-walrus
Or use as pre-commit hook:
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.2.1
hooks:
- id: auto-walrus
v0.1.9
Only rewrite if the variable is only used within the if-statement's body (idea from python-graphblas/python-graphblas#287 (comment))
Hopefully this is now kinda stable and I can calm down with the releases 😄
Install with
$ pip install auto-walrus
Or use as pre-commit hook:
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.1.9
hooks:
- id: auto-walrus
v0.1.8
Bug-fix release - don't rewrite while
loops as it can be unsafe
Install with
$ pip install auto-walrus
Or use as pre-commit hook:
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.1.8
hooks:
- id: auto-walrus
v0.1.7
Bug-fix release - only rewrite when test is simple, add option to exclude lines with # no-walrus
, performance improvement
Install with
$ pip install auto-walrus
Or use as pre-commit hook:
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.1.7
hooks:
- id: auto-walrus
v0.1.5
Bug-fix release - added extra defensive check
Install with
$ pip install auto-walrus
Or use as pre-commit hook:
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.1.5
hooks:
- id: auto-walrus
v0.1.4
Bug-fix release - don't rewrite if file contains syntax error
Install with
$ pip install auto-walrus
Or use as pre-commit hook:
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.1.4
hooks:
- id: auto-walrus
v0.1.3
Bug-fix release - specified encoding (utf-8
) when opening files
Install with
$ pip install auto-walrus
Or use as pre-commit hook:
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.1.3
hooks:
- id: auto-walrus
v0.1.2
Initial release 🎉
Install with
$ pip install auto-walrus
Or use as pre-commit hook:
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.1.2
hooks:
- id: auto-walrus