Skip to content

Releases: MarcoGorelli/auto-walrus

0.3.4

23 Apr 08:14
Compare
Choose a tag to compare

0.3.3

10 Apr 09:11
Compare
Choose a tag to compare
0.3.3

v0.2.1

16 Oct 19:55
Compare
Choose a tag to compare

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

12 Oct 21:43
Compare
Choose a tag to compare

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

11 Oct 18:54
Compare
Choose a tag to compare

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

11 Oct 08:38
Compare
Choose a tag to compare

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

08 Oct 12:10
Compare
Choose a tag to compare

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

08 Oct 11:39
Compare
Choose a tag to compare

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

08 Oct 09:29
Compare
Choose a tag to compare

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

07 Oct 22:26
Compare
Choose a tag to compare

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