8000 Tags · dosisod/refurb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: dosisod/refurb

Tags

v2.1.0

Toggle v2.1.0's commit message
Bump version to v2.1.0

v2.0.0

Toggle v2.0.0's commit message
Release v2

v1.28.0

Toggle v1.28.0's commit message
Fix typo

v1.27.0

Toggle v1.27.0's commit message
Replace `.clone()` with `.copy()`:

I don't know how I let that one slip past, I must've been half asleep.

v1.26.0

Toggle v1.26.0's commit message
Bump version to v1.26.0

v1.25.0

Toggle v1.25.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Don't emit FURB135/FURB148 when using `_` in comprehensions (#312):

Closes #311.

See #311 (comment)
for a detailed explaination of the problem and how I went about fixing it.

v1.24.0

Toggle v1.24.0's commit message
Add `simplify-hashlib-ctor` check:

Also bump version for new release.

v1.23.0

Toggle v1.23.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Pin Mypy to <1.7.0 (#306):

Temporarily fixes #305.

Specifically, this error is being caused by this line:

https://github.com/python/mypy/blob/e4355948d797600c7b76da0a916fc5f29d10448e/mypy/traverser.py#L97

Because `TraverserVisitor` now is a `trait` you cannot extend from it. There
doesn't seem to be a way to get around this on my end, so I'm pinning Mypy as a
workaround until I find a solution or something changes upstream with Mypy.

v1.22.2

Toggle v1.22.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Skip files that raise `RecursionError` (#304):

Certain deeply-nested expressions cause the Refurb visitor to blow the stack.
This doesn't seem to be an issue when running
6DD7
 with Mypy directly, though this
is probably because we are traversing the entire AST. As a workaround we will
silently ignore files that cause this issue. For debugging purposes there
should probably be a flag to show files that have been ignored (perhaps just
stuff it under the `-v` flag for now).

Also bump version for new release.

Closes #302.

v1.22.1

Toggle v1.22.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add better detection of list/set comprehensions (#300):

See #298 (comment)

This PR adds better detection of list/set comprehensions. Previously Refurb
checks ran depth first, meaning that the leaf nodes where the first nodes to
be hit. Now the checks are ran before traversing, meaning checks will run on
the root nodes first. This allows checks more flexibility, though for this
PR, it allows them to ignore nodes that they have already seen which prevents
multiple errors being emitted in certain circumstances.

Also bump version for new release.
0